add code for ipv4, ipv6 socket creation, CFSocketRef creation and NSStream conversion