Advertisement

Select() server question

Started by May 10, 2005 06:05 PM
1 comment, last by Fruny 19 years, 9 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?
sorry but what does your first connection mean?

select server working like this

select()
for()
{
if( isset())
recv();
}
if( isset(listenfd))
{
accept();
}
/*- John Dragon-*/
Advertisement
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