• 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: Mon, 10 May 2004 12:00:47 +0100

At 15:04 +0400 8/5/04, Igor garnov wrote:
"Classic applications" - do these include Carbon CFM applications?

This is not governed by the construction of the application, but by the environment in which it runs. Applications running in the following environments can bind to low-numbered ports without special privileges.

o traditional Mac OS
o Classic running on Mac OS X

OTOH, applications running natively on Mac OS X can not bind to low-numbered ports without special privileges. It makes no difference if they're Carbon or Cocoa, CFM or Mach-O. However, the standard workaround for getting special privileges (MoreAuthSample) is much harder to use if the application is built as CFM, and virtually impossible to use if you're using Open Transport.

And, I still wonder - is there some difference between binding to a port to listen to unicast datagrams and broadcast datagrams?

The only gotcha that I know of relates to how you bind. If you want to listen for unicasts, multicasts, and broadcasts, you have to bind to an IP address of 0. If you bind to a specific IP address, you only hear about unicasts to that IP address. This is discussed in detail in DTS Q&A NW53 "Receiving UDP Broadcasts".

<http://developer.apple.com/qa/nw/nw53.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.


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

  • Prev by Date: about the question for MAC OS 9 ethernet driver
  • Next by Date: Re: about the question for MAC OS 9 ethernet driver
  • Previous by thread: Re: Listening on the port
  • Next by thread: Re: CFNetwork and 404
  • Index(es):
    • Date
    • Thread