Lines Matching refs:sock
137 int sock;
139 sock = socket(AF_INET, SOCK_STREAM, 0);
140 if (sock == -1)
152 close(sock);
161 if (connect(sock, (struct sockaddr *)&serveraddr,
163 close(sock);
170 int sock = -1;
193 sock = BIO_socket(BIO_ADDRINFO_family(ai), SOCK_STREAM, 0, 0);
194 if (sock == -1)
198 if (!BIO_connect(sock, BIO_ADDRINFO_address(ai), BIO_SOCK_NODELAY)) {
199 BIO_closesocket(sock);
200 sock = -1;
230 BIO_closesocket(sock);
241 BIO_set_fd(bio, sock, BIO_CLOSE);