I've written a multi-threaded simple server that uses:
clientStream.Read(message, 0, 4096);
To block until the client has sent a message. The code then goes on to process that message.
So far I've only been using it to send short commands
ex. "#login[username][login]"
but I'm worried that when I send huge table data over the line the code may continue before it has all been received.
So will .Read block until the whole sent message is received, or does it unblock when any data has begun receiving?