|
-
April 21st, 2009, 10:41 PM
#2
Re: select in one thread, closesocket in another thread
Yes the call to select will return -1 if there is a problem with one of the sockets.
Since you are using blocking sockets, you had best not close the socket from a seperate thread.
In non-blocking scenarios it is much easier to handle this gracefully, by simply setting the timeout on the select to zero.
Note the flow chart for select states.
http://publib.boulder.ibm.com/infoce...6xnonblock.htm
ahoodin
To keep the plot moving, that's why.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|