Original Post
🔒 Locked
FD_READ message
Advertisement
To answer your specific question, if you call recv() and do not receive all of the data ready to be copied, FD_READ will be sent again. You''ll continue to receive an FD_READ on successive calls to recv() until all data in the network buffer has been acknowledged (copied) by your program.
In general, FD_READ is sent:
________________________________________________
RapscallionGL development continues...
"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C
In general, FD_READ is sent:
- When WSAAsyncSelect() is called, if there is data waiting to be received.
- When new data arrives on a socket.
- And in the case discussed above, in which the program has copied a portion of the available data from the network buffer.
________________________________________________
RapscallionGL development continues...
"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement