Re: how to use the same udp port already loaded by launchd?
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