GNU libmicrohttpd
0.9.62
|
function to call event handlers based on event mask More...
Go to the source code of this file.
Functions | |
int | MHD_connection_call_handlers_ (struct MHD_Connection *con, bool read_ready, bool write_ready, bool force_close) MHD_NONNULL(1) |
bool | MHD_NONNULL (1) |
function to call event handlers based on event mask
Definition in file connection_call_handlers.h.
int MHD_connection_call_handlers_ | ( | struct MHD_Connection * | con, |
bool | read_ready, | ||
bool | write_ready, | ||
bool | force_close | ||
) |
Call the handlers for a connection in the appropriate order based on the readiness as detected by the event loop.
con | connection to handle |
read_ready | set if the socket is ready for reading |
write_ready | set if the socket is ready for writing |
force_close | set if a hard error was detected on the socket; if this information is not available, simply pass MHD_NO |
Definition at line 3591 of file connection_call_handlers.c.
References MHD_Connection::daemon, MHD_Daemon::data_already_pending, MHD_Request::event_loop_info, MHD_connection_close_(), MHD_EVENT_LOOP_INFO_BLOCK, MHD_EVENT_LOOP_INFO_READ, MHD_EVENT_LOOP_INFO_WRITE, MHD_REQUEST_CHUNKED_BODY_READY, MHD_request_handle_idle_(), MHD_request_handle_read_(), MHD_request_handle_write_(), MHD_REQUEST_HEADERS_SENDING, MHD_REQUEST_INIT, MHD_REQUEST_NORMAL_BODY_READY, MHD_REQUEST_TERMINATED_WITH_ERROR, MHD_Connection::request, ret, MHD_Connection::sk_nonblck, MHD_Request::state, MHD_Daemon::threading_mode, and MHD_Connection::tls_read_ready.
Referenced by internal_run_from_select(), and thread_main_handle_connection().
bool MHD_NONNULL | ( | 1 | ) |
This function was created to handle per-request processing that has to happen even if the socket cannot be read or written to.
request | the request to handle |