dotnet/WatsonTcp

Can't we use WatsonTcp to communicate with normal tcp servers?

pendingtask opened this issue ยท 3 comments

Every time I use myWatsonTcpClientInstance.SendAndWait send any data( byte[] ) to a normal tcp server ( a native C# tcp server Socket or any tcp debug software), whenever the server replies, the myWatsonTcpClientInstance.Events.ServerDisconnected will be triggered before i get any response (actually i wont get anything cause the connection was closed and an exception will be throwed).
But if the server side was an implementation of WatsonTcpServer and WatsonTcpServer.SyncRequestReceived was settled to reply the client side request, every thing works fine...
So, can't we use WatsonTcp to communicate with normal tcp servers?
thank you for your reply

You cannot. Please refer to the README:
image

I do have two other libraries that you can use, which don't provide framing. SuperSimpleTcp has a similar implementation to WatsonTcp. CavemanTcp has a different implementation with more granular control.

Cheers, Joel

thank you for your reply and sorry for that

All good @pendingtask - this is the reason I made the SuperSimpleTcp library :) Cheers