Re: bind privileged port
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