Re: Conversion of CFSocketCreateWithNative -> NSSocketPort
Re: Conversion of CFSocketCreateWithNative -> NSSocketPort
- Subject: Re: Conversion of CFSocketCreateWithNative -> NSSocketPort
- From: Andrew Farmer <email@hidden>
- Date: Fri, 27 Nov 2009 11:01:16 -0800
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 (email@hidden)
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:
This email sent to email@hidden