Previous: , Up: microhttpd-info   [Contents][Index]


12.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.

connection

the connection for which an option should be set or modified;

option

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).

Enumeration: MHD_CONNECTION_OPTION

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

MHD_CONNECTION_OPTION_TIMEOUT

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