Does select() work on connection-less UDP sockets?
Does select() work on connection-less UDP sockets? My initial experiments failed - I had a 5 second wait on the select, but when I sent some data from the client, nothing happened. the select() call returned 0. I'm presuming this is possible, but I'm not sure what I'm doing wrong.
Thanks
I just tried again, and when I run my server I get a return value of 1 from select(), without sending anything from the client. Weird.
Google, where are ya???
Google, where are ya???
Did you pass in a writable mask? Select() will return if there's a writable socket in the write fd_set.
Yeah I passed in all three masks - I'm getting a write action for the socket, whic h is weird as I'm not writing anything to it.
THanks
THanks
Quote:Original post by stodgeSelect notifies you when the socket is ready for writing (i.e. the output buffer isn't full), not when something has been written to it.
Yeah I passed in all three masks - I'm getting a write action for the socket, whic h is weird as I'm not writing anything to it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement