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: Frederick Cheung <email@hidden>
- Date: Wed, 12 Oct 2005 09:26:10 +0100
> - Connect a UDP socket destination address using CFSocketConnectAddress (...).
>
> - Call to CFSocketCopyPeerAddress () returns nil.
>
> Is this the correct behaviour. It seems wrong, but the CFSocket
> documentation isn't detailed enough to say.
>
>
> Also, I asked in Feb and haven't got an answer:
> > What makes this "feature" harder to diagnose is that CFSocket doesn't
> > seem to return any of this error information. Am I missing a way to
> > get more informative error codes than "succeed" / "fail" / "timeout"?
>
>
I couldn't say off the top of my head, but what has been very useful
to me in the past for diagnosing trouble with CF in general is that
the source is available (here:
http://darwinsource.opendarwin.org/10.4.2/CF-368.11/RunLoop.subproj/CFSocket.c)
Fred
_______________________________________________
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