Select() server question

Started by
1 comment, last by Fruny 18 years, 11 months ago
is the only way to index a select server with the file discriptor it gives? is there no way i can use like if this is the first connection then fdset(1,&readfds) something like that?
Advertisement
sorry but what does your first connection mean?

select server working like this

select()
for()
{
if( isset())
recv();
}
if( isset(listenfd))
{
accept();
}
/*- John Dragon-*/
Cross-post.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement