Advertisement

Nonblocking questions......

Started by February 28, 2001 07:33 AM
2 comments, last by kalldrex 23 years, 9 months ago
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.
Advertisement
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.
What i''m asking if i use nonblocking mode would i be able to still recieve information even if a loop things like server side commands and such?
ALL YOUR BASE ARE BELONG TO US!!!!

This topic is closed to new replies.

Advertisement