Re: Refusing connections
Re: Refusing connections
- Subject: Re: Refusing connections
- From: Quinn <email@hidden>
- Date: Thu, 18 Aug 2005 15:02:31 +0100
At 15:34 +0200 18/8/05, Tomas Franzén wrote:
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:
This email sent to email@hidden