• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Refusing connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Refusing connections
  • Next by Date: Re: Securing socket programming
  • Previous by thread: Refusing connections
  • Next by thread: Bug in NSStream or NSHost?
  • Index(es):
    • Date
    • Thread