Lines Matching refs:msgsock
1716 curl_socket_t msgsock = CURL_SOCKET_BAD; in accept_connection() local
1725 msgsock = accept(sock, NULL, NULL); in accept_connection()
1728 if(CURL_SOCKET_BAD != msgsock) in accept_connection()
1729 sclose(msgsock); in accept_connection()
1733 if(CURL_SOCKET_BAD == msgsock) { in accept_connection()
1744 if(0 != curlx_nonblock(msgsock, TRUE)) { in accept_connection()
1748 sclose(msgsock); in accept_connection()
1752 if(0 != setsockopt(msgsock, SOL_SOCKET, SO_KEEPALIVE, in accept_connection()
1757 sclose(msgsock); in accept_connection()
1773 all_sockets[num_sockets] = msgsock; in accept_connection()
1782 if(0 != setsockopt(msgsock, IPPROTO_TCP, TCP_NODELAY, in accept_connection()
1788 return msgsock; in accept_connection()
1793 static int service_connection(curl_socket_t msgsock, struct httprequest *req, in service_connection() argument
1801 int rc = get_request(msgsock, req); in service_connection()
1822 send_doc(msgsock, req); in service_connection()
1842 http_connect(&msgsock, listensock, connecthost, req->connect_port); in service_connection()
2262 curl_socket_t msgsock; in main() local
2264 msgsock = accept_connection(sock); in main()
2265 logmsg("accept_connection %d returned %d", sock, msgsock); in main()
2266 if(CURL_SOCKET_BAD == msgsock) in main()
2268 } while(msgsock > 0); in main()