On 27 Nov 2009, at 06:48, Michael Ash wrote:
> There's no Cocoa version of this, as far as I know. However,
> CFSocketCopyPeerAddress is just a wrapper around the POSIX function
> getpeername(), so you can just get the native socket from your
> NSSocketPort and then call that.

Or just keep using CFSocketCopyPeerAddress. Using CoreFoundation is not a crime 
- it's just as much a part of OS X as Cocoa is, and it's not going to be 
removed at any point in the foreseeable 
future._______________________________________________

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 arch...@mail-archive.com

Reply via email to