I'm having some trouble using select in my program. I'm not sure if I
should be asking here or in a unix newsgroup but I am on MacOS so...
My code is below but for some reason select never returns anything other
// '_s' is a socket discriptor that is bound and listening.
FD_ZERO( &rfds );
FD_SET( _s, &rfds );
tv.tv_sec = 0;
tv.tv_usec = 0;
int retval = select( 1, &rfds, 0, 0, &tv );
if ( retval )
I know the socket is set up ...