Previous: microhttpd-info conn, Up: microhttpd-info

11.3 Setting custom options for an individual connection

— Function: int MHD_set_connection_option (struct MHD_Connection *daemon, enum MHD_CONNECTION_OPTION option, ...)

Set a custom option for the given connection.

the connection for which an option should be set or modified;
option to set
additional arguments for the option (depending on option)

Returns MHD_YES on success, MHD_NO for errors (i.e. option argument invalid or option unknown).


Values of this enum are used to specify which option for a connection should be changed.

Set a custom timeout for the given connection. Specified as the number of seconds, given as an unsigned int. Use zero for no timeout.