• 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: Listening on the port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Listening on the port
      • From: Igor garnov <email@hidden>
References: 
 >Listening on the port (From: Igor garnov <email@hidden>)

  • Prev by Date: Re: How can I get WINS?
  • Next by Date: Re: How can I get WINS?
  • Previous by thread: Listening on the port
  • Next by thread: Re: Listening on the port
  • Index(es):
    • Date
    • Thread