• 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: udp port sharing across processes on OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: udp port sharing across processes on OS X?


  • Subject: Re: udp port sharing across processes on OS X?
  • From: Josh Graessley <email@hidden>
  • Date: Thu, 1 Jun 2006 10:23:26 -0700


This is not odd at all. It is very common for multiple clients to listen for multicast traffic. What's odd are the weird socket options, SO_REUSEADDR and SO_REUSEPORT that cause endless confusion and bugs.


-josh

On Jun 1, 2006, at 12:42 AM, Michael Smith wrote:


On May 31, 2006, at 9:44 PM, Michelle Munson wrote:

By setting the socket options SO_REUSEADDR and
SO_REUSEPORT, I've been able to successfully get two
instances of the same process running as the same user
to bind and share the same UDP port on OS X. However,
if the two instances of the process are running as
different user ids, the bind attempt by the second
instance of the process fails with "address already in
use". Does anyone know if there is way to get two
instances of the same process running as different
user ids to reuse the same UDP port on Mac OS X?

This is a very odd thing to want to have happen. What behaviour would you expect from such a shared port with regards to inbound traffic?


 = Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com


This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: udp port sharing across processes on OS X? (From: Michael Smith <email@hidden>)

  • Prev by Date: Re: udp port sharing across processes on OS X?
  • Next by Date: Re: cross-bounday memory communication b/w user app and the Kernel.How?
  • Previous by thread: Re: udp port sharing across processes on OS X?
  • Next by thread: Re: udp port sharing across processes on OS X?
  • Index(es):
    • Date
    • Thread