Lines Matching refs:client_fd

41   int client_fd, accepted_fd;  in ConnectAndAccept()  local
47 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept()
63 if (connect(client_fd, (struct sockaddr*)(&sa), in ConnectAndAccept()
72 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept()
80 if (connect(client_fd, (struct sockaddr*)(&sa4), in ConnectAndAccept()
93 close(client_fd); in ConnectAndAccept()
130 int server_fd, client_fd, accepted_fd, connect_rc; in CreateServerConnectAndAccept() local
156 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
169 connect_rc = connect(client_fd, (struct sockaddr*)(&sa), in CreateServerConnectAndAccept()
175 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
183 connect_rc = connect(client_fd, (struct sockaddr*)(&sa4), in CreateServerConnectAndAccept()
198 close(client_fd); in CreateServerConnectAndAccept()
268 int server_fd, client_fd; in ThreadedCreateServerConnectAndAccept() local
286 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedCreateServerConnectAndAccept()
306 if (connect(client_fd, (struct sockaddr*)(&sa), in ThreadedCreateServerConnectAndAccept()
314 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedCreateServerConnectAndAccept()
324 if (connect(client_fd, (struct sockaddr*)(&sa4), in ThreadedCreateServerConnectAndAccept()
345 close(client_fd); in ThreadedCreateServerConnectAndAccept()