Home | History | Annotate | Download | only in src

Lines Matching refs:client_fd

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