Lines Matching refs:socket_fd
846 if (MHD_INVALID_SOCKET != daemon->socket_fd && in MHD_get_fdset2()
847 MHD_YES != add_to_fd_set (daemon->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
855 if (MHD_YES != add_to_fd_set (pos->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
859 if (MHD_YES != add_to_fd_set (pos->socket_fd, write_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
862 MHD_YES != add_to_fd_set (pos->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
867 MHD_YES != add_to_fd_set (pos->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
955 add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE)) in MHD_handle_connection()
960 add_to_fd_set (con->socket_fd, &ws, &max, FD_SETSIZE)) in MHD_handle_connection()
964 add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE)) ) in MHD_handle_connection()
970 add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE)) ) in MHD_handle_connection()
1017 if ( (FD_ISSET (con->socket_fd, &rs)) in MHD_handle_connection()
1023 if (FD_ISSET (con->socket_fd, &ws)) in MHD_handle_connection()
1033 p[0].fd = con->socket_fd; in MHD_handle_connection()
1148 if ( (MHD_INVALID_SOCKET == connection->socket_fd) || in recv_param_adapter()
1154 ret = recv (connection->socket_fd, other, i, MSG_NOSIGNAL); in recv_param_adapter()
1186 if ( (MHD_INVALID_SOCKET == connection->socket_fd) || in send_param_adapter()
1193 return send (connection->socket_fd, other, i, MSG_NOSIGNAL); in send_param_adapter()
1205 if (-1 != (ret = sendfile (connection->socket_fd, in send_param_adapter()
1230 ret = send (connection->socket_fd, other, i, MSG_NOSIGNAL); in send_param_adapter()
1512 connection->socket_fd = client_socket; in internal_add_connection()
1533 int flags = fcntl (connection->socket_fd, F_GETFL); in internal_add_connection()
1535 (0 != fcntl (connection->socket_fd, F_SETFL, flags | O_NONBLOCK)) ) in internal_add_connection()
1545 if (0 != ioctlsocket (connection->socket_fd, FIONBIO, &flags)) in internal_add_connection()
1756 connection->socket_fd, in MHD_suspend_connection()
2000 if (MHD_INVALID_SOCKET == (fd = daemon->socket_fd)) in MHD_accept_connection()
2022 (MHD_INVALID_SOCKET == daemon->socket_fd) ) in MHD_accept_connection()
2113 pos->socket_fd, in MHD_cleanup_connections()
2124 if (MHD_INVALID_SOCKET != pos->socket_fd) in MHD_cleanup_connections()
2127 shutdown (pos->socket_fd, SHUT_WR); in MHD_cleanup_connections()
2129 if (0 != MHD_socket_close_ (pos->socket_fd)) in MHD_cleanup_connections()
2273 if ( (MHD_INVALID_SOCKET != (ds = daemon->socket_fd)) && in MHD_run_from_select()
2288 ds = pos->socket_fd; in MHD_run_from_select()
2369 if ( (MHD_INVALID_SOCKET != daemon->socket_fd) && in MHD_select()
2372 FD_CLR (daemon->socket_fd, &rs); in MHD_select()
2377 if ( (MHD_INVALID_SOCKET != daemon->socket_fd) && in MHD_select()
2378 (MHD_YES != add_to_fd_set (daemon->socket_fd, in MHD_select()
2474 if ( (MHD_INVALID_SOCKET != daemon->socket_fd) && in MHD_poll_all()
2478 p[poll_server].fd = daemon->socket_fd; in MHD_poll_all()
2504 p[poll_server+i].fd = pos->socket_fd; in MHD_poll_all()
2562 if (p[poll_server+i].fd != pos->socket_fd) in MHD_poll_all()
2574 if (p[poll_server+i].fd != pos->socket_fd) in MHD_poll_all()
2629 if (MHD_INVALID_SOCKET != daemon->socket_fd) in MHD_poll_listen_socket()
2631 p[poll_count].fd = daemon->socket_fd; in MHD_poll_listen_socket()
2736 if ( (MHD_INVALID_SOCKET != daemon->socket_fd) && in MHD_epoll()
2744 daemon->socket_fd, in MHD_epoll()
2763 daemon->socket_fd, in MHD_epoll()
3064 ret = daemon->socket_fd; in MHD_quiesce_daemon()
3080 daemon->worker_pool[i].socket_fd = MHD_INVALID_SOCKET; in MHD_quiesce_daemon()
3095 daemon->socket_fd = MHD_INVALID_SOCKET; in MHD_quiesce_daemon()
3332 daemon->socket_fd = va_arg (ap, MHD_socket); in parse_options_va()
3556 if (MHD_INVALID_SOCKET == daemon->socket_fd) in setup_epoll_to_listen()
3562 daemon->socket_fd, in setup_epoll_to_listen()
3624 MHD_socket socket_fd; in MHD_start_daemon_va() local
3660 daemon->socket_fd = MHD_INVALID_SOCKET; in MHD_start_daemon_va()
3800 if ( (MHD_INVALID_SOCKET == daemon->socket_fd) && in MHD_start_daemon_va()
3805 socket_fd = create_socket (daemon, in MHD_start_daemon_va()
3808 socket_fd = create_socket (daemon, in MHD_start_daemon_va()
3810 if (MHD_INVALID_SOCKET == socket_fd) in MHD_start_daemon_va()
3825 if (0 > setsockopt (socket_fd, in MHD_start_daemon_va()
3846 if (0 > setsockopt (socket_fd, in MHD_start_daemon_va()
3868 if (0 > setsockopt (socket_fd, in MHD_start_daemon_va()
3899 if (0 > setsockopt (socket_fd, in MHD_start_daemon_va()
3953 daemon->socket_fd = socket_fd; in MHD_start_daemon_va()
3969 if (0 > setsockopt (socket_fd, in MHD_start_daemon_va()
3982 if (-1 == bind (socket_fd, servaddr, addrlen)) in MHD_start_daemon_va()
3990 if (0 != MHD_socket_close_ (socket_fd)) in MHD_start_daemon_va()
3999 if (0 != setsockopt (socket_fd, in MHD_start_daemon_va()
4015 int sk_flags = fcntl (socket_fd, F_GETFL); in MHD_start_daemon_va()
4016 if (0 != fcntl (socket_fd, F_SETFL, sk_flags | O_NONBLOCK)) in MHD_start_daemon_va()
4023 if (0 != MHD_socket_close_ (socket_fd)) in MHD_start_daemon_va()
4029 if (listen (socket_fd, 32) < 0) in MHD_start_daemon_va()
4036 if (0 != MHD_socket_close_ (socket_fd)) in MHD_start_daemon_va()
4043 socket_fd = daemon->socket_fd; in MHD_start_daemon_va()
4046 if ( (socket_fd >= FD_SETSIZE) && in MHD_start_daemon_va()
4052 socket_fd, in MHD_start_daemon_va()
4055 if (0 != MHD_socket_close_ (socket_fd)) in MHD_start_daemon_va()
4094 if ( (MHD_INVALID_SOCKET != socket_fd) && in MHD_start_daemon_va()
4095 (0 != MHD_socket_close_ (socket_fd)) ) in MHD_start_daemon_va()
4106 if ( (MHD_INVALID_SOCKET != socket_fd) && in MHD_start_daemon_va()
4107 (0 != MHD_socket_close_ (socket_fd)) ) in MHD_start_daemon_va()
4120 if ( (MHD_INVALID_SOCKET != socket_fd) && in MHD_start_daemon_va()
4121 (0 != MHD_socket_close_ (socket_fd)) ) in MHD_start_daemon_va()
4142 if ( (MHD_INVALID_SOCKET != socket_fd) && in MHD_start_daemon_va()
4143 (0 != MHD_socket_close_ (socket_fd)) ) in MHD_start_daemon_va()
4170 sk_flags = fcntl (socket_fd, F_GETFL); in MHD_start_daemon_va()
4173 if (0 != fcntl (socket_fd, F_SETFL, sk_flags | O_NONBLOCK)) in MHD_start_daemon_va()
4177 if (SOCKET_ERROR == ioctlsocket (socket_fd, FIONBIO, &sk_flags)) in MHD_start_daemon_va()
4280 if ( (MHD_INVALID_SOCKET != socket_fd) && in MHD_start_daemon_va()
4281 (0 != MHD_socket_close_ (socket_fd)) ) in MHD_start_daemon_va()
4366 shutdown (pos->socket_fd, in close_all_connections()
4439 fd = daemon->socket_fd; in MHD_stop_daemon()
4440 daemon->socket_fd = MHD_INVALID_SOCKET; in MHD_stop_daemon()
4448 daemon->worker_pool[i].socket_fd = MHD_INVALID_SOCKET; in MHD_stop_daemon()
4591 return (const union MHD_DaemonInfo *) &daemon->socket_fd; in MHD_get_daemon_info()