Lines Matching refs:listener
138 curl_socket_t listener; in Curl_socketpair() local
146 listener = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in Curl_socketpair()
147 if(listener == CURL_SOCKET_BAD) in Curl_socketpair()
163 if(setsockopt(listener, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, in Curl_socketpair()
169 if(setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, in Curl_socketpair()
173 if(bind(listener, &a.addr, sizeof(a.inaddr)) == -1) in Curl_socketpair()
175 if(getsockname(listener, &a.addr, &addrlen) == -1 || in Curl_socketpair()
178 if(listen(listener, 1) == -1) in Curl_socketpair()
187 if(curlx_nonblock(listener, TRUE) < 0) in Curl_socketpair()
189 pfd[0].fd = listener; in Curl_socketpair()
193 socks[1] = accept(listener, NULL, NULL); in Curl_socketpair()
254 sclose(listener); in Curl_socketpair()
258 sclose(listener); in Curl_socketpair()