| /src/tests/net/tcp/ |
| t_tcp_connect_port.c | 199 int asock, csock, error, i, lsock; local 211 lsock = socket(domain, SOCK_STREAM, 0); 212 ATF_REQUIRE_MSG(lsock >= 0, "socket() for listen socket failed: %s", 214 error = bind(lsock, addr, addr->sa_len); 216 error = listen(lsock, 1); 224 error = getsockname(lsock, &su_srvr.saddr, &salen); 280 asock = accept(lsock, NULL, NULL);
|
| /src/crypto/external/apache2/openssl/dist/test/helpers/ |
| handshake.c | 1321 int lsock = INVALID_SOCKET, asock = INVALID_SOCKET; local 1340 lsock = BIO_socket(family, SOCK_STREAM, IPPROTO_SCTP, 0); 1341 if (lsock == INVALID_SOCKET) { 1348 if (!set_sock_as_sctp(lsock) 1349 || !BIO_listen(lsock, BIO_ADDRINFO_address(ai), 1351 BIO_closesocket(lsock); 1352 lsock = INVALID_SOCKET; 1360 if (lsock == INVALID_SOCKET) 1379 asock = BIO_accept_ex(lsock, NULL, BIO_SOCK_NONBLOCK); 1392 if (lsock != INVALID_SOCKET [all...] |
| /src/crypto/external/bsd/openssl/dist/test/helpers/ |
| handshake.c | 1307 int lsock = INVALID_SOCKET, asock = INVALID_SOCKET; local 1326 lsock = BIO_socket(family, SOCK_STREAM, IPPROTO_SCTP, 0); 1327 if (lsock == INVALID_SOCKET) { 1334 if (!set_sock_as_sctp(lsock) 1335 || !BIO_listen(lsock, BIO_ADDRINFO_address(ai), 1337 BIO_closesocket(lsock); 1338 lsock = INVALID_SOCKET; 1346 if (lsock == INVALID_SOCKET) 1365 asock = BIO_accept_ex(lsock, NULL, BIO_SOCK_NONBLOCK); 1378 if (lsock != INVALID_SOCKET [all...] |
| /src/crypto/external/bsd/openssl.old/dist/test/ |
| handshake_helper.c | 1329 int lsock = INVALID_SOCKET, asock = INVALID_SOCKET; local 1348 lsock = BIO_socket(family, SOCK_STREAM, IPPROTO_SCTP, 0); 1349 if (lsock == INVALID_SOCKET) { 1356 if (!set_sock_as_sctp(lsock) 1357 || !BIO_listen(lsock, BIO_ADDRINFO_address(ai), 1359 BIO_closesocket(lsock); 1360 lsock = INVALID_SOCKET; 1368 if (lsock == INVALID_SOCKET) 1387 asock = BIO_accept_ex(lsock, NULL, BIO_SOCK_NONBLOCK); 1400 if (lsock != INVALID_SOCKET [all...] |
| /src/external/bsd/ntp/dist/ntpd/ |
| ntp_io.c | 4556 vsock_t *lsock = emalloc(sizeof(*lsock)); local 4558 lsock->fd = fd; 4559 lsock->type = type; 4561 LINK_SLIST(fd_list, lsock, link); 4572 vsock_t *lsock; local 4574 UNLINK_EXPR_SLIST(lsock, fd_list, fd == 4577 if (NULL == lsock) 4580 switch (lsock->type) { 4588 closesocket(lsock->fd) [all...] |