GNU libmicrohttpd  0.9.72
daemon_select.c File Reference

function to run select()-based event loop of a daemon More...

#include "internal.h"
#include "connection_add.h"
#include "connection_call_handlers.h"
#include "connection_cleanup.h"
#include "connection_finish_forward.h"
#include "daemon_select.h"
#include "daemon_epoll.h"
#include "request_resume.h"
#include "upgrade_process.h"
Include dependency graph for daemon_select.c:

Go to the source code of this file.

Functions

enum MHD_StatusCode MHD_daemon_get_fdset (struct MHD_Daemon *daemon, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, MHD_socket *max_fd)
 
static enum MHD_StatusCode internal_get_fdset2 (struct MHD_Daemon *daemon, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, MHD_socket *max_fd, unsigned int fd_setsize)
 
enum MHD_StatusCode MHD_daemon_get_fdset2 (struct MHD_Daemon *daemon, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, MHD_socket *max_fd, unsigned int fd_setsize)
 
static enum MHD_StatusCode internal_run_from_select (struct MHD_Daemon *daemon, const fd_set *read_fd_set, const fd_set *write_fd_set, const fd_set *except_fd_set)
 
enum MHD_StatusCode MHD_daemon_run_from_select (struct MHD_Daemon *daemon, const fd_set *read_fd_set, const fd_set *write_fd_set, const fd_set *except_fd_set)
 
enum MHD_StatusCode MHD_daemon_select_ (struct MHD_Daemon *daemon, int may_block)
 

Detailed Description

function to run select()-based event loop of a daemon

Author
Christian Grothoff

Definition in file daemon_select.c.

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 1 of file daemon_select.c.

Referenced by MHD_daemon_run(), and MHD_daemon_start().

Here is the caller graph for this function: