aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 3f3b61de..9537c962 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -106,7 +106,7 @@ extern "C"
106/** 106/**
107 * Current version of the library. 107 * Current version of the library.
108 */ 108 */
109#define MHD_VERSION 0x00090703 109#define MHD_VERSION 0x00090800
110 110
111/** 111/**
112 * MHD-internal return code for "YES". 112 * MHD-internal return code for "YES".
@@ -1035,6 +1035,33 @@ void MHD_stop_daemon (struct MHD_Daemon *daemon);
1035 1035
1036 1036
1037/** 1037/**
1038 * Add another client connection to the set of connections
1039 * managed by MHD. This API is usually not needed (since
1040 * MHD will accept inbound connections on the server socket).
1041 * Use this API in special cases, for example if your HTTP
1042 * server is behind NAT and needs to connect out to the
1043 * HTTP client.
1044 *
1045 * The given client socket will be managed (and closed!) by MHD after
1046 * this call and must no longer be used directly by the application
1047 * afterwards.
1048 *
1049 * @param daemon daemon that manages the connection
1050 * @param client_socket socket to manage (MHD will expect
1051 * to receive an HTTP request from this socket next).
1052 * @param addr IP address of the client
1053 * @param addrlen number of bytes in addr
1054 * @return MHD_YES on success, MHD_NO if this daemon could
1055 * not handle the connection (i.e. malloc failed, etc).
1056 * The socket will be closed in any case.
1057 */
1058int MHD_add_connection (struct MHD_Daemon *daemon,
1059 int client_socket,
1060 const struct sockaddr *addr,
1061 socklen_t addrlen);
1062
1063
1064/**
1038 * Obtain the select sets for this daemon. 1065 * Obtain the select sets for this daemon.
1039 * 1066 *
1040 * @param daemon daemon to get sets from 1067 * @param daemon daemon to get sets from