dotnet / WatsonTcp

WatsonTcp is the easiest way to build TCP-based clients and servers in C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to disable auto send heder data.

x-bruce opened this issue · comments

I use WatsonTcpClient to send data to server.
When I call
_client.Send(data);

Always receive head info package of {{"s":"Normal","len":19}}. ahead of my pure data.
How to disable this feature?

Hi @x-bruce you don't. Framing is built into WatsonTcp. If you need a library that doesn't use framing, I have two other libraries that may be helpful. SuperSimpleTcp has a very similar implementation and no framing. CavemanTcp is a different implementation allowing you controls over how much data to read.

From the README:
image

Got it, Thanks