Launchd agent not able to get updated udp socket
Launchd agent not able to get updated udp socket
- Subject: Launchd agent not able to get updated udp socket
- From: Ian Mark Salvame <email@hidden>
- Date: Tue, 17 Nov 2009 22:50:03 -0800 (PST)
I have a launchd agent with the plist below. My launchd agent gets the socket fd using check-in functions for launchd.
Once I get the socket fd, I used this in sending udp packets to clients. The receiving client will then get the current IP address
of the server(the one with the launchd agent) through the recvfrom address parameter.
The problem is, while the launchd agent is running on my server and I changed the server's connection to another router
which provides a different IP address, the client still receives the previous IP address of the server.
I want the client to know the current IP address of the server to be able to reply to it.
Did I miss something on the launchd plist? Or Is there some additional operations I need to do for my launchd
agent?
<dict>
<key>Label</key>
<string>com.mylaunchd</string>
<key>Program</key>
<string>/Applications/MyApp.app</string>
<key>OnDemand</key>
<false/>
<key>Sockets</key>
<dict>
<key>MyListeners</key>
<dict>
<key>SockFamily</key>
<string>IPv4</string>
<key>SockType</key>
<string>dgram</string>
<key>SockServiceName</key>
<string>12345</string>
</dict>
</dict>
</dict>
</plist>
Feel safer online.
Upgrade to the new, safer Internet Explorer 8 optimized for Yahoo! to put your mind at peace. It's free.
Get IE8 here! _______________________________________________
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