Showing posts with label CFSocketCreate iPhone ipv6 ipv4. Show all posts
Showing posts with label CFSocketCreate iPhone ipv6 ipv4. Show all posts

Saturday, 25 April 2009

CFSocketCreate on iPhone

If you're doing sockets programming on your iPhone (like I'm doing for Mixtikl's file sharing server code), don't panic when your call to CFSocketCreate fails to create an IPv6 TCP socket when passing PF_INET6.

Just accept the IPv4 socket that you will get when passing-in PF_INET, and all will be fine... :)