Lines Matching refs:msgsock
1859 curl_socket_t msgsock = CURL_SOCKET_BAD; in accept_connection() local
1868 msgsock = accept(sock, NULL, NULL); in accept_connection()
1871 if(CURL_SOCKET_BAD != msgsock) in accept_connection()
1872 sclose(msgsock); in accept_connection()
1876 if(CURL_SOCKET_BAD == msgsock) { in accept_connection()
1887 if(0 != curlx_nonblock(msgsock, TRUE)) { in accept_connection()
1891 sclose(msgsock); in accept_connection()
1895 if(0 != setsockopt(msgsock, SOL_SOCKET, SO_KEEPALIVE, in accept_connection()
1900 sclose(msgsock); in accept_connection()
1916 all_sockets[num_sockets] = msgsock; in accept_connection()
1925 if(0 != setsockopt(msgsock, IPPROTO_TCP, TCP_NODELAY, in accept_connection()
1931 return msgsock; in accept_connection()
1936 static int service_connection(curl_socket_t msgsock, struct httprequest *req, in service_connection() argument
1944 int rc = get_request(msgsock, req); in service_connection()
1965 send_doc(msgsock, req); in service_connection()
1985 http_connect(&msgsock, listensock, connecthost, req->connect_port); in service_connection()
2343 curl_socket_t msgsock; in main() local
2345 msgsock = accept_connection(sock); in main()
2346 logmsg("accept_connection %d returned %d", sock, msgsock); in main()
2347 if(CURL_SOCKET_BAD == msgsock) in main()
2349 } while(msgsock > 0); in main()