Date: Wed, 23 Oct 2002 15:44:47 -0700 (PDT) From: Vinod <geekvinod@yahoo.com> To: freebsd-questions@freebsd.org Subject: help with socket programming Message-ID: <20021023224447.33671.qmail@web21108.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
I needed some help with unix socket programming.i have
the richard steven's book but couldnt solve this.
i need a socket descriptor handle to process all my
clients which fork out.but the handle i was using
new_fd(see below) turned out to be the same for all.
listen(..,..)
for(;;)
{
int new_fd=accept(sockfd,....,...);
...
....
}
Shouldnt the new_fd be distinct everytime a new client
connects?
Thanks in advance,
Vinod
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021023224447.33671.qmail>
