GNU libmicrohttpd  0.9.72
connection_add.h File Reference

functions to add connection to our active set More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

enum MHD_StatusCode MHD_accept_connection_ (struct MHD_Daemon *daemon) MHD_NONNULL(1)
 

Detailed Description

functions to add connection to our active set

Author
Christian Grothoff

Definition in file connection_add.h.

Function Documentation

◆ MHD_accept_connection_()

enum MHD_StatusCode MHD_accept_connection_ ( struct MHD_Daemon daemon)

Accept an incoming connection and create the MHD_Connection object for it. This function also enforces policy by way of checking with the accept policy callback.

Remarks
To be called only from thread that process daemon's select()/poll()/etc.
Parameters
daemonhandle with the listen socket
Returns
#MHD_SC_OK on success

Definition at line 521 of file connection_add.c.