On Tue, Mar 11, 2008 at 3:14 AM, Mac QA <[EMAIL PROTECTED]> wrote:
>  The NSSocketPort class doesn't seem to have a way to get the port when
>  you just alloc & init like this. So How can you advertise over Bonjour
>  for a generic dynamically determined port selected at runtime?

Grab the underlying socket's fd using -[NSSocketPort socket], and then
use getsockname(2) to get at its sockaddr structure.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to