Lines Matching refs:msgsock
1797 curl_socket_t msgsock = CURL_SOCKET_BAD; in accept_connection() local
1806 msgsock = accept(sock, NULL, NULL); in accept_connection()
1809 if(CURL_SOCKET_BAD != msgsock) in accept_connection()
1810 sclose(msgsock); in accept_connection()
1814 if(CURL_SOCKET_BAD == msgsock) { in accept_connection()
1825 if(0 != curlx_nonblock(msgsock, TRUE)) { in accept_connection()
1829 sclose(msgsock); in accept_connection()
1833 if(0 != setsockopt(msgsock, SOL_SOCKET, SO_KEEPALIVE, in accept_connection()
1838 sclose(msgsock); in accept_connection()
1854 all_sockets[num_sockets] = msgsock; in accept_connection()
1863 if(0 != setsockopt(msgsock, IPPROTO_TCP, TCP_NODELAY, in accept_connection()
1869 return msgsock; in accept_connection()
1874 static int service_connection(curl_socket_t msgsock, struct httprequest *req, in service_connection() argument
1882 int rc = get_request(msgsock, req); in service_connection()
1903 send_doc(msgsock, req); in service_connection()
1923 http_connect(&msgsock, listensock, connecthost, req->connect_port); in service_connection()
2278 curl_socket_t msgsock; in main() local
2280 msgsock = accept_connection(sock); in main()
2281 logmsg("accept_connection %d returned %d", sock, msgsock); in main()
2282 if(CURL_SOCKET_BAD == msgsock) in main()
2284 } while(msgsock > 0); in main()