Searched refs:connect_sock (Results 1 - 3 of 3) sorted by relevance
/freebsd-10.2-release/tools/regression/sockets/shutdown/ |
H A D | shutdown.c | 45 int listen_sock, connect_sock; local 80 connect_sock = socket(PF_INET, SOCK_STREAM, 0); 81 if (connect_sock == -1) 91 if (connect(connect_sock, (struct sockaddr *)&sock, sizeof(sock)) < 0) 94 if ((shutdown(connect_sock, SHUT_RD - 1) != -1) && (errno != EINVAL)) 96 if ((shutdown(connect_sock, SHUT_RDWR + 1) != -1) && (errno != EINVAL)) 99 if (shutdown(connect_sock, SHUT_RD) < 0) 102 if (shutdown(connect_sock, SHUT_WR) < 0) 106 close(connect_sock);
|
/freebsd-10.2-release/tools/regression/sockets/listenclose/ |
H A D | listenclose.c | 57 int listen_sock, connect_sock; local 89 connect_sock = socket(PF_INET, SOCK_STREAM, 0); 90 if (connect_sock == -1) 95 if (fcntl(connect_sock, F_SETFL, &arg) < 0) 105 if (connect(connect_sock, (struct sockaddr *)&sin, sizeof(sin)) < 0) 107 close(connect_sock);
|
/freebsd-10.2-release/tools/regression/sockets/sigpipe/ |
H A D | sigpipe.c | 220 int accept_sock, connect_sock; local 224 connect_sock = socket(PF_INET, SOCK_STREAM, 0); 225 if (connect_sock < 0) 234 if (connect(connect_sock, (struct sockaddr *)&sin, sizeof(sin)) < 0) 247 sock[1] = connect_sock;
|
Completed in 45 milliseconds