• Home
  • Raw
  • Download

Lines Matching refs:AF_INET6

47     if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) {  in ConnectAndAccept()
52 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in ConnectAndAccept()
54 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in ConnectAndAccept()
56 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in ConnectAndAccept()
61 sa.sin6_family = AF_INET6; in ConnectAndAccept()
103 if ((*server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServer()
108 sa.sin6_family = AF_INET6; in CreateServer()
132 if ((server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
138 sa.sin6_family = AF_INET6; in CreateServerConnectAndAccept()
156 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
161 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in CreateServerConnectAndAccept()
163 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in CreateServerConnectAndAccept()
165 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in CreateServerConnectAndAccept()
224 if ((threaded_server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedStartServer()
231 sa.sin6_family = AF_INET6; in ThreadedStartServer()
286 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedCreateServerConnectAndAccept()
292 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in ThreadedCreateServerConnectAndAccept()
302 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in ThreadedCreateServerConnectAndAccept()
304 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in ThreadedCreateServerConnectAndAccept()