The title is from B4Android, but I would like to implement com with the desktop using this mode.
It adds the length of the message at the begining of the message, so this is simple.
The Problem is how to make the Client.DataAvailable be true only when all the bytes have arrived ? and if the length is bigger then the header - what to do with the rest of the buffer so it will be part of the next message ?
Thanks.
It adds the length of the message at the begining of the message, so this is simple.
The Problem is how to make the Client.DataAvailable be true only when all the bytes have arrived ? and if the length is bigger then the header - what to do with the rest of the buffer so it will be part of the next message ?
Thanks.