Nonblocking questions......
so if i have my server in non-blocking mode this means i don''t have to loop it right it will keep trying to recieve data if it''s not in a loop right? what if i put a comand entry in a for looop will that effect it?
ALL YOUR BASE ARE BELONG TO US!!!!
Actually, it means the opposite: recv() on a blocking socket will not return until there is data available, recv on a non-blocking endpoint will return immediately (it won''t block) even if there is no data.
Matt Slot / Bitwise Operator / Ambrosia Software, Inc.
You''re thinking about overlapped I/O. With overlapped I/O, you queue up an operation (send / recv) which returns right away, and Winsock will notify you when the operation has actually completed.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement