Should not be my case, since the data is less then 100k and regularly read by the receiving end.Not until the buffer is full on the receiving end. If the buffer is full, no more data can be written until some data is read
I use chunk at the end of the data.If you try to read an empty buffer you'll just get an empty value unless you told it how much to read or to read until it encounters a specified chunk, in which case it will wait until the specified amount of data is received or until the chunk is encountered.
Code: Select all
read from socket p_Socket until kEndOfFile with message "chatServerMessageReceived"
I can then clear the buffer with a
Code: Select all
read from socket p_Socket