Re: Problem related kernel level socket api soaccept()
Re: Problem related kernel level socket api soaccept()
- Subject: Re: Problem related kernel level socket api soaccept()
- From: Herry Wiputra <email@hidden>
- Date: Fri, 19 Dec 2003 10:42:50 +1100
- Organization: SGI Australian Software Group
Hi,
The reason why soaccept paniced is because soaccept() is
a non-blocking call, and you call soaccept without any connections
to be accepted.
You need to provide your own blocking mechanism to wait until
the socket has connections ready to be accepted.
Please look at accept1() in Darwin source tree for more example.
Regards,
Herry
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.