Lines Matching refs:socks
61 curl_socket_t socks[2]) in Curl_socketpair()
84 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_socketpair()
96 socks[0] = socket(AF_INET, SOCK_STREAM, 0); in Curl_socketpair()
97 if(socks[0] == CURL_SOCKET_BAD) in Curl_socketpair()
99 if(connect(socks[0], &a.addr, sizeof(a.inaddr)) == -1) in Curl_socketpair()
109 socks[1] = accept(listener, NULL, NULL); in Curl_socketpair()
110 if(socks[1] == CURL_SOCKET_BAD) in Curl_socketpair()
115 if(getsockname(socks[0], &a.addr, &addrlen) == -1 || in Curl_socketpair()
119 if(getpeername(socks[1], &a2.addr, &addrlen) == -1 || in Curl_socketpair()
132 sclose(socks[0]); in Curl_socketpair()
133 sclose(socks[1]); in Curl_socketpair()