GNU libmicrohttpd  0.9.62
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
connection_close.h File Reference

functions to close connection More...

#include "microhttpd2.h"
Include dependency graph for connection_close.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void MHD_NONNULL (1)
 
void MHD_connection_close_ (struct MHD_Connection *connection, enum MHD_RequestTerminationCode rtc) MHD_NONNULL(1)
 

Detailed Description

functions to close connection

Author
Christian Grothoff

Definition in file connection_close.h.

Function Documentation

void MHD_connection_close_ ( struct MHD_Connection connection,
enum MHD_RequestTerminationCode  termination_code 
)

Close the given connection and give the specified termination code to the user.

Remarks
To be called only from thread that process connection's recv(), send() and response.
Parameters
connectionconnection to close
rtctermination reason to give

Close the given connection and give the specified termination code to the user.

Remarks
To be called only from thread that process connection's recv(), send() and response.
Parameters
connectionconnection to close
termination_codetermination reason to give

Definition at line 84 of file connection_close.c.

void MHD_NONNULL ( )

Mark connection as "closed".

Remarks
To be called from any thread.
Parameters
connectionconnection to close