nonblocking send need help
Hi, im in trouble with nonblocking send. When i set server to nonblocking send, the client is not received all the data, there's something missing. I have used my own buffer to make sure all the data is sent. This problem didn't happen if it's nonblocking send.
This is what happended :
Case: server send msg to client. Client is in hang mode, so doesn't call recv.
1. Server trying to send n msg and all sucess (means send return > 0)
2. when send return < 0, it should be the buffer is full.
3. Although the previous is return < 0, somehow after calling send again, it return > 0. It should be return < 0 because client doesn't call recv
What exactly happend... any help? thx :)