• 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: bind privileged port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bind privileged port


  • Subject: Re: bind privileged port
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Fri, 23 Aug 2013 09:57:49 +0100

On 23 Aug 2013, at 03:35, Kevin Yu <email@hidden> wrote:

> Any help will be appreciate!

What Josh said, but also...

When you bind to a specific port number you always have to have a fallback approach because some other app may be using it.  So, what I recommend you do here is simply catch the error and then revert to your fallback.  That'll take care of the problem on the simulator but also be helpful in the real world.

Regardless of what you do, you should consider advertising your service with Bonjour so that Bonjour-aware clients don't need to hard-code a port number.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
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: 
 >bind privileged port (From: Kevin Yu <email@hidden>)

  • Prev by Date: Re: bind privileged port
  • Previous by thread: Re: bind privileged port
  • Index(es):
    • Date
    • Thread