GNU libmicrohttpd
0.9.29
|
Methods for managing response objects. More...
Go to the source code of this file.
Functions | |
void | MHD_increment_response_rc (struct MHD_Response *response) |
int | MHD_response_execute_upgrade_ (struct MHD_Response *response, struct MHD_Connection *connection) |
Methods for managing response objects.
Definition in file response.h.
void MHD_increment_response_rc | ( | struct MHD_Response * | response | ) |
Increments the reference counter for the response.
response | object to modify |
Definition at line 1028 of file response.c.
References MHD_mutex_lock_chk_, MHD_mutex_unlock_chk_, MHD_Response::mutex, and MHD_Response::reference_count.
Referenced by MHD_queue_response().
int MHD_response_execute_upgrade_ | ( | struct MHD_Response * | response, |
struct MHD_Connection * | connection | ||
) |
We are done sending the header of a given response to the client. Now it is time to perform the upgrade and hand over the connection to the application.
response | the response that was created for an upgrade |
connection | the specific connection we are upgrading |
Definition at line 708 of file response.c.
References _, _MHD_EXTERN, MHD_Connection::client_context, MHD_UpgradeResponseHandle::connection, MHD_Connection::daemon, DLL_insert, EXTRA_CHECK, MHD_EPOLL_STATE_UNREADY, MHD_get_response_header(), MHD_HTTP_HEADER_UPGRADE, MHD_INVALID_SOCKET, MHD_NO, MHD_PANIC, MHD_pool_allocate(), MHD_pool_get_free(), MHD_SCKT_FD_FITS_FDSET_, MHD_socket_close_chk_, MHD_socket_last_strerr_, MHD_socket_nonblocking_(), MHD_suspend_connection(), MHD_USE_EPOLL, MHD_USE_POLL, MHD_USE_THREAD_PER_CONNECTION, MHD_USE_TLS, MHD_YES, NULL, MHD_Daemon::options, MHD_Connection::pool, MHD_Connection::read_buffer, MHD_Connection::read_buffer_offset, RESERVE_EBUF_SIZE, MHD_Connection::socket_fd, MHD_Response::upgrade_handler, MHD_Response::upgrade_handler_cls, and MHD_Connection::urh.
Referenced by MHD_connection_handle_idle().