GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
daemon_select.h File Reference

non-public functions provided by daemon_select.c More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

enum MHD_StatusCode MHD_daemon_select_ (struct MHD_Daemon *daemon, int may_block) MHD_NONNULL(1)
 

Detailed Description

non-public functions provided by daemon_select.c

Author
Christian Grothoff

Definition in file daemon_select.h.

Function Documentation

◆ MHD_daemon_select_()

enum MHD_StatusCode MHD_daemon_select_ ( struct MHD_Daemon daemon,
int  may_block 
)

Main internal select() call. Will compute select sets, call select() and then internal_run_from_select() with the result.

Parameters
daemondaemon to run select() loop for
may_blockMHD_YES if blocking, MHD_NO if non-blocking
Returns
#MHD_SC_OK on success

Definition at line 654 of file daemon_select.c.

References _, MHD_Daemon::at_limit, MHD_Daemon::connections, MHD_Daemon::disallow_suspend_resume, MHD_Daemon::global_connection_limit, internal_get_fdset2(), internal_run_from_select(), MHD_Daemon::itc, MHD_Daemon::listen_socket, MHD_add_to_fd_set_(), MHD_daemon_get_timeout(), MHD_INVALID_SOCKET, MHD_NO, MHD_resume_suspended_connections_(), MHD_SCKT_ERR_IS_EINTR_, MHD_socket_get_error_, MHD_socket_strerr_, MHD_SYS_select_, MHD_UNSIGNED_LONG_LONG, NULL, MHD_Daemon::shutdown, MHD_Daemon::threading_mode, TIMEVAL_TV_SEC_MAX, and MHD_Daemon::was_quiesced.

Referenced by MHD_daemon_run(), and MHD_polling_thread().

Here is the call graph for this function:
Here is the caller graph for this function: