I wrote a multi-threaded simple server that uses:
clientStream.Read(message, 0, 4096);
Block until the client sends a message. The code then processes this message.
So far I have only used it to send short commands
ex. "#login[username][login]"
but I'm worried that when I send huge table data line by line, the code may continue until all of them are received.
It will be so. Read the block until all the sent message is received, or is it unlocked when any data is received?
source share