GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
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_connection_mark_closed_ (struct MHD_Connection *connection) 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

◆ MHD_connection_close_()

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 83 of file connection_close.c.

◆ MHD_connection_mark_closed_()

void MHD_connection_mark_closed_ ( struct MHD_Connection connection)

Mark connection as "closed".

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

Definition at line 36 of file connection_close.c.