|
-
March 29th, 2010, 07:25 AM
#5
Re: Make select() return
I suppose the other thread could close or shutdown the socket which would flag the error fd_set and break out of the select() block.
I generally run an infinite loop with a reasonable timeout for the select() timeval ("reasonable" requires some experimenting), then break out of the loop once all data have been read or written.
Tags for this Thread
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
|