site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Stop setting both. -josh 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? Thanks, Michelle _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com Set only SO_REUSEPORT. SO_REUSEPORT is for UDP. SO_REUSEADDR is for TCP listening sockets. SO_REUSEADDR makes it possible to kill a server process and start it again without having to wait for a timeout on the old TCP sockets. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/jgraessley% 40apple.com This email sent to jgraessley@apple.com smime.p7s