I need to read my networkstream, so I do like this:
byte bytes = new byte[tcpClient.ReceiveBufferSize];
networkStream.Read(bytes, 0, tcpClient.ReceiveBufferSize);
The problem is that the buffer size (8192) > my datas(20).
So, finally I read the networkstream and I get a string length=8192 instead of a string length=20.
How can I get the only datas I need ?
Thanks in advance for your help.