Searched refs:sock2 (Results 1 - 8 of 8) sorted by relevance
/freebsd-10.0-release/tools/regression/sockets/unix_bindconnect/ |
H A D | unix_bindconnect.c | 89 int sock1, sock2; local 137 sock2 = socket(PF_UNIX, SOCK_STREAM, 0); 138 if (sock2 < 0) { 148 if (bind(sock2, (struct sockaddr *)&sun, sizeof(sun)) == 0) { 151 close(sock2); 157 close(sock2); 168 if (bind(sock2, (struct sockaddr *)&sun, sizeof(sun)) == 0) { 170 close(sock2); 175 close(sock2); 185 if (bind(sock2, (struc 200 int sock1, sock2; local [all...] |
/freebsd-10.0-release/tools/regression/sockets/sigpipe/ |
H A D | sigpipe.c | 120 test_send_wantsignal(const char *testname, int sock1, int sock2) argument 123 if (shutdown(sock2, SHUT_WR) < 0) 126 test_send(testname, sock2); 130 close(sock2); 135 test_send_dontsignal(const char *testname, int sock1, int sock2) argument 140 if (setsockopt(sock2, SOL_SOCKET, SO_NOSIGPIPE, &i, sizeof(i)) < 0) 142 if (shutdown(sock2, SHUT_WR) < 0) 145 test_send(testname, sock2); 149 close(sock2); 154 test_write_wantsignal(const char *testname, int sock1, int sock2) argument 169 test_write_dontsignal(const char *testname, int sock1, int sock2) argument [all...] |
/freebsd-10.0-release/tools/regression/sockets/zerosend/ |
H A D | zerosend.c | 80 int sock1, sock2; local 99 sock2 = socket(PF_INET, SOCK_DGRAM, 0); 100 if (sock2 < 0) 102 if (bind(sock2, (struct sockaddr *)&sin, sizeof(sin)) < 0) 106 if (connect(sock2, (struct sockaddr *)&sin, sizeof(sin)) < 0) 111 fdp[1] = sock2; 119 int ret, sock1, sock2, sock3; local 144 sock2 = socket(PF_INET, SOCK_STREAM, 0); 145 if (sock2 < 0) 147 if (fcntl(sock2, F_SETF [all...] |
/freebsd-10.0-release/crypto/heimdal/appl/test/ |
H A D | nt_gss_server.c | 158 int sock, sock2; local 181 sock2 = accept (sock, NULL, NULL); 182 if (sock2 < 0) 185 return proto (sock2, service);
|
H A D | uu_server.c | 177 int sock, sock2; local 200 sock2 = accept (sock, NULL, NULL); 201 if (sock2 < 0) 204 return proto (sock2, service);
|
H A D | gssapi_server.c | 300 int sock, sock2; local 325 sock2 = accept (sock, NULL, NULL); 326 if (sock2 < 0) 329 ret = proto (sock2, service);
|
/freebsd-10.0-release/tools/tools/netrate/juggle/ |
H A D | juggle.c | 113 int sock1, sock2; local 119 sock2 = socket(PF_INET, SOCK_DGRAM, 0); 120 if (sock2 == -1) { 139 close(sock2); 143 if (bind(sock2, (struct sockaddr *) &sin2, sizeof(sin2)) < 0) { 145 close(sock2); 151 close(sock2); 155 if (connect(sock2, (struct sockaddr *) &sin1, sizeof(sin1)) < 0) { 157 close(sock2); 162 *fd2p = sock2; [all...] |
/freebsd-10.0-release/contrib/ntp/include/ |
H A D | ntp.h | 508 #define SOCKCMP(sock1, sock2) \ 510 == ((struct sockaddr_storage *)sock2)->ss_family ? \ 513 &((struct sockaddr_in *)sock2)->sin_addr, \ 516 &((struct sockaddr_in6 *)sock2)->sin6_addr, \
|
Completed in 100 milliseconds