Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refusing connections



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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Refusing connections (From: Tomas Franzén <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.