• 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: Ian Mark Salvame <email@hidden>
  • Date: Thu, 19 Nov 2009 03:18:02 -0800 (PST)


> 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

Thanks Quin.
Yes, your are right.
I just double checked my code and did find a bug.
Thanks a lot :)


Yahoo! Mail Now Faster and Cleaner. Experience it today!
 _______________________________________________
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

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

  • Prev by Date: Re: NSStream Operation Timed out issue
  • Next by Date: need to find exact WiFi encryption method
  • Previous by thread: Re: Launchd agent not able to get updated udp socket
  • Next by thread: Help needed in Writing network usage monitor application
  • Index(es):
    • Date
    • Thread