Lines Matching refs:socks

35 int Curl_eventfd(curl_socket_t socks[2], bool nonblocking)  in Curl_eventfd()
39 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_eventfd()
42 socks[0] = socks[1] = efd; in Curl_eventfd()
50 int Curl_pipe(curl_socket_t socks[2], bool nonblocking) in Curl_pipe()
52 if(pipe(socks)) in Curl_pipe()
55 if(fcntl(socks[0], F_SETFD, FD_CLOEXEC) || in Curl_pipe()
56 fcntl(socks[1], F_SETFD, FD_CLOEXEC) ) { in Curl_pipe()
57 close(socks[0]); in Curl_pipe()
58 close(socks[1]); in Curl_pipe()
59 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_pipe()
64 if(curlx_nonblock(socks[0], TRUE) < 0 || in Curl_pipe()
65 curlx_nonblock(socks[1], TRUE) < 0) { in Curl_pipe()
66 close(socks[0]); in Curl_pipe()
67 close(socks[1]); in Curl_pipe()
68 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_pipe()
81 curl_socket_t socks[2], bool nonblocking) in Curl_socketpair()
86 if(socketpair(domain, type, protocol, socks)) in Curl_socketpair()
90 if(curlx_nonblock(socks[0], TRUE) < 0 || in Curl_socketpair()
91 curlx_nonblock(socks[1], TRUE) < 0) { in Curl_socketpair()
92 close(socks[0]); in Curl_socketpair()
93 close(socks[1]); in Curl_socketpair()
132 curl_socket_t socks[2], bool nonblocking) in Curl_socketpair()
155 socks[0] = socks[1] = CURL_SOCKET_BAD; in Curl_socketpair()
180 socks[0] = socket(AF_INET, SOCK_STREAM, 0); in Curl_socketpair()
181 if(socks[0] == CURL_SOCKET_BAD) in Curl_socketpair()
183 if(connect(socks[0], &a.addr, sizeof(a.inaddr)) == -1) in Curl_socketpair()
193 socks[1] = accept(listener, NULL, NULL); in Curl_socketpair()
194 if(socks[1] == CURL_SOCKET_BAD) in Curl_socketpair()
207 swrite(socks[0], rnd, sizeof(rnd)); in Curl_socketpair()
212 pfd[0].fd = socks[1]; in Curl_socketpair()
217 nread = sread(socks[1], p, s); in Curl_socketpair()
251 if(curlx_nonblock(socks[0], TRUE) < 0 || in Curl_socketpair()
252 curlx_nonblock(socks[1], TRUE) < 0) in Curl_socketpair()
259 sclose(socks[0]); in Curl_socketpair()
260 sclose(socks[1]); in Curl_socketpair()