• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFSocketCopyPeerAddress returns nil for connected UDP socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CFSocketCopyPeerAddress returns nil for connected UDP socket (From: Andrew White <email@hidden>)

  • Prev by Date: Clip paths displayed in outlineview : core data app.
  • Next by Date: Disk image won't open under pre-Panther
  • Previous by thread: Re: CFSocketCopyPeerAddress returns nil for connected UDP socket
  • Next by thread: accessing the CFSteam that NSURLConnection is using?
  • Index(es):
    • Date
    • Thread