I'm using CFSocket to build a server program. Is
there any way to refuse new connections instead
of accept()-ing them?
No. This is a 'feature' of the underlying
sockets API. The kernel will always accept
connections for a listening socket (as long as
its within the backlog specified when you call
listen). The best you can do is close the
unwanted connection once you know about it.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
[DTS is hiring support engineers. Contact me for details.]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden