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

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

  • Follow-Ups:
    • Re: Launchd agent not able to get updated udp socket
      • From: Quinn <email@hidden>
  • Prev by Date: Re: SNMP Manager Example Code?
  • Next by Date: Help needed in Writing network usage monitor application
  • Previous by thread: Re: SNMP Manager Example Code?
  • Next by thread: Re: Launchd agent not able to get updated udp socket
  • Index(es):
    • Date
    • Thread