Lines Matching refs:sock
113 sock = BIO_socket(BIO_ADDRINFO_family(ai), SOCK_DGRAM, 0, 0);
114 if (sock == -1)
118 if (!BIO_connect(sock, BIO_ADDRINFO_address(ai), 0)) {
119 BIO_closesocket(sock);
120 sock = -1;
125 if (!BIO_socket_nbio(sock, 1)) {
126 BIO_closesocket(sock);
127 sock = -1;
134 if (sock != -1) {
137 BIO_closesocket(sock);
171 BIO_closesocket(sock);
182 BIO_set_fd(bio, sock, BIO_CLOSE);