Re: Listening on the port
Re: Listening on the port
- Subject: Re: Listening on the port
- From: Quinn <email@hidden>
- Date: Fri, 7 May 2004 13:39:11 +0100
At 2:45 +0400 4/5/04, Igor garnov wrote:
My Carbon CFM application using Open Transport creates an endpoint
for UDP protocol and then binds it to port 137 (to listen to
broadcasts in network neighborhood).
I presume you're running the Carbon application on Mac OS X. If so,
this is going to be tricky. On Mac OS X, TCP and UDP ports below
1024 are privileged; you can't bind to them unless you're running as
root (that is, your EUID is 0). There are techniques to solve this
problem (for example, the descriptor passing technique supported by
MoreSecurity; see MoreAuthSample for details) but they're difficult
to use from a CFM application and totally incompatible with Open
Transport.
<
http://developer.apple.com/samplecode/MoreAuthSample/MoreAuthSample.html>
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.