• 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: how to use the same udp port already loaded by launchd?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use the same udp port already loaded by launchd?


  • Subject: Re: how to use the same udp port already loaded by launchd?
  • From: Josh Graessley <email@hidden>
  • Date: Wed, 15 Jul 2009 11:38:22 -0700


On Jul 15, 2009, at 11:33 AM, Hamish Allan wrote:

On Wed, Jul 15, 2009 at 7:09 PM, Ian Mark Salvame<email@hidden> wrote:

If I have a loaded launchd agent listening to a udp port12345,
Is there a way for a separate process to bind that same port without
unloading the launchd agent?

If the original agent and the subsequent process both bind with SO_REUSEADDR / SO_REUSEPORT, you should both be able to listen to the same UDP port (disclaimer: I've only ever tried this with multicast ports).

Multicast and broadcast packets will go to all UDP sockets listening on the port.


Unicast packets will go to one of the UDP sockets listening on the port. Which socket it goes to is undefined.

-josh

_______________________________________________
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: 
 >how to use the same udp port already loaded by launchd? (From: Ian Mark Salvame <email@hidden>)
 >Re: how to use the same udp port already loaded by launchd? (From: Hamish Allan <email@hidden>)

  • Prev by Date: Re: how to use the same udp port already loaded by launchd?
  • Next by Date: Re: how to use the same udp port already loaded by launchd?
  • Previous by thread: Re: how to use the same udp port already loaded by launchd?
  • Next by thread: CFNetwork with multiple persistent HTTP connections
  • Index(es):
    • Date
    • Thread