Re: Launchd agent not able to get updated udp socket
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