Re: CFSocketCopyPeerAddress returns nil for connected UDP socket
Re: CFSocketCopyPeerAddress returns nil for connected UDP socket
- Subject: Re: CFSocketCopyPeerAddress returns nil for connected UDP socket
- From: Douglas Davidson <email@hidden>
- Date: Wed, 12 Oct 2005 18:23:06 -0700
On Oct 12, 2005, at 12:07 AM, Andrew White wrote:
- Connect a UDP socket destination address using
CFSocketConnectAddress (...).
- Call to CFSocketCopyPeerAddress () returns nil.
CFSocket doesn't currently support peer addresses for SOCK_DGRAM
sockets. You can file a bug about this if you like, but this
behavior is generally consistent with that of the underlying BSD
layer. Since you are the one performing the connect, you can simply
hold on to the address you use rather than asking the CFSocket for
it. In fact, you don't even need to connect when you are using a
SOCK_DGRAM socket.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden