Lines Matching refs:msgsock
1842 curl_socket_t msgsock = CURL_SOCKET_BAD; in accept_connection() local
1851 msgsock = accept(sock, NULL, NULL); in accept_connection()
1854 if(CURL_SOCKET_BAD != msgsock) in accept_connection()
1855 sclose(msgsock); in accept_connection()
1859 if(CURL_SOCKET_BAD == msgsock) { in accept_connection()
1870 if(0 != curlx_nonblock(msgsock, TRUE)) { in accept_connection()
1874 sclose(msgsock); in accept_connection()
1878 if(0 != setsockopt(msgsock, SOL_SOCKET, SO_KEEPALIVE, in accept_connection()
1883 sclose(msgsock); in accept_connection()
1899 all_sockets[num_sockets] = msgsock; in accept_connection()
1908 if(0 != setsockopt(msgsock, IPPROTO_TCP, TCP_NODELAY, in accept_connection()
1914 return msgsock; in accept_connection()
1919 static int service_connection(curl_socket_t msgsock, struct httprequest *req, in service_connection() argument
1928 int rc = get_request(msgsock, req); in service_connection()
1949 send_doc(msgsock, req); in service_connection()
1969 http_connect(&msgsock, listensock, connecthost, req->connect_port, in service_connection()
2380 curl_socket_t msgsock; in main() local
2382 msgsock = accept_connection(sock); in main()
2384 " returned %" FMT_SOCKET_T, sock, msgsock); in main()
2385 if(CURL_SOCKET_BAD == msgsock) in main()
2389 } while(msgsock > 0); in main()