while (clientSocket.Connected) { byte[] streamBuffer = new byte[4]; int streamLenght = this.clientStream.Read(streamBuffer, 0, 4); if (streamLenght == 0) break; int sizeofnewdata = BitConverter.ToInt32(streamBuffer, 0); streamBuffer = new byte[sizeofnewdata]; streamLenght = this.clientStream.Read(streamBuffer, 0, sizeofnewdata); if (streamLenght == 0) break; }
newzion wrote:What would be easiest way to send first just 4 bytes using send() in c++
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)