GNU libmicrohttpd  0.9.29
MHD_UpgradeResponseHandle Struct Reference

#include </builddir/build/BUILD/libmicrohttpd-0.9.52/src/microhttpd/internal.h>

Data Fields

struct MHD_Connectionconnection
 
int was_closed
 

Detailed Description

Handle given to the application to manage special actions relating to MHD responses that "upgrade" the HTTP protocol (i.e. to WebSockets).

Definition at line 983 of file internal.h.

Field Documentation

◆ connection

struct MHD_Connection* MHD_UpgradeResponseHandle::connection

The connection for which this is an upgrade handle. Note that because a response may be shared over many connections, this may not be the only upgrade handle for the response of this connection.

Definition at line 990 of file internal.h.

Referenced by MHD_cleanup_upgraded_connection_(), MHD_get_fdset(), MHD_response_execute_upgrade_(), MHD_select(), MHD_upgrade_action(), and thread_main_connection_upgrade().

◆ was_closed

int MHD_UpgradeResponseHandle::was_closed

Set to MHD_YES after the application finished with the socket by MHD_UPGRADE_ACTION_CLOSE.

Definition at line 1060 of file internal.h.

Referenced by MHD_cleanup_upgraded_connection_(), and MHD_upgrade_action().


The documentation for this struct was generated from the following file: