Re: Liberating locked up ports
Re: Liberating locked up ports
- Subject: Re: Liberating locked up ports
- From: Quinn <email@hidden>
- Date: Mon, 27 Jan 2003 19:42:51 +0000
At 8:41 -0800 27/1/03, Duane Murphy wrote:
This doesnt sound right, especially coming from Quinn. Maybe I'm
mistaken, but cant you use the same technique they use in Apache?
You missed the key word in "no good solution", which is "good".
There are a variety of less than good solutions.
You can make your application setuid, but a) that's generally a bad
idea, b) won't work with CFM, and c) most applications can't just get
away with creating their endpoints at startup time but instead need
to create them sometime after startup.
You can also write a 'router' helper tool, one that forwards incoming
connections and data to a non-privileged port. But that's only
appropriate for low bandwidth applications.
These solutions are, IMHO, throwing good code after bad. You might
as well do the work to adopt sockets, especially if you already have
a sockets implementation that you use on other platforms.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.