Re: CFSocketSignature & IPv6 addresses
Re: CFSocketSignature & IPv6 addresses
- Subject: Re: CFSocketSignature & IPv6 addresses
- From: OL&L Lists <email@hidden>
- Date: Fri, 27 May 2005 10:07:40 -0700
Title: Re: CFSocketSignature & IPv6
addresses
At 4:11 PM -0700 5/25/05, Douglas Davidson wrote:
On May 25, 2005, at 4:01 PM, OL&L
Lists wrote:
I need to pack some socket info (family,
type, port, address, etc) into a CFDictionary so that I can pass it to
my helper tool.
I want to use a CFSocketSignature to hold this data but I notice
the Apple docs say CFSocketSignature can only hold a sockaddr_in and
not a sockaddr_in6 structure.
Where do they say that?
CFSocketSignature has an address, which is a CFDataRef and should be
able to hold any kind of sockaddr.
http://developer.apple.com/documentation/CoreFoundation/Reference/CFSocketRef/Reference/chapter_1.5_section_1.html
"A
CFData object holding the contents of a struct sockaddr
appropriate for the given protocol family, identifying the address of
the socket."
However, you cannot put a
CFSocketSignature into a CFDictionary, because it is a struct and not
a CFType. You can, however, place the address CFDataRef into a
CFDictionary, and it may be sufficient for your needs.
OK so in that case what is the easiest and quickest way to store
all this data in a CFDictionary? I need to send *all* the socket info
to my helper tool, not just the address info.
Thanks
Michael
http://www.orbitallaunch.com
Orbital Launch & Lift, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden