• 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: Launchd agent not able to get updated udp socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launchd agent not able to get updated udp socket


  • Subject: Re: Launchd agent not able to get updated udp socket
  • From: Quinn <email@hidden>
  • Date: Thu, 19 Nov 2009 09:22:49 +0000

Given the way you've set up your launchd property list, launchd should be binding the socket to INADDR_ANY. In that case, when you send packets via that socket, the source address of the packet will be determined by the interface via which that specific packet is routed. The socket should stay bound to INADDR_ANY, and thus maintain no memory of the IP address used to transmit.

This assumes you're not calling <x-man-page://2/connect> on that socket. If you're calling connect that binds the socket's source address. In general, using connected UDP sockets is a good idea, but in this case it's probably going to cause you problems.

S+E
--
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


  • Follow-Ups:
    • Re: Launchd agent not able to get updated udp socket
      • From: Ian Mark Salvame <email@hidden>
References: 
 >Launchd agent not able to get updated udp socket (From: Ian Mark Salvame <email@hidden>)

  • Prev by Date: Re: NSStream Operation Timed out issue
  • Next by Date: Re: NSStream Operation Timed out issue
  • Previous by thread: Launchd agent not able to get updated udp socket
  • Next by thread: Re: Launchd agent not able to get updated udp socket
  • Index(es):
    • Date
    • Thread