Select() server question
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();
}
select server working like this
select()
for()
{
if( isset())
recv();
}
if( isset(listenfd))
{
accept();
}
/*- John Dragon-*/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement