GNU libmicrohttpd 1.0.0
Loading...
Searching...
No Matches
connection.h
Go to the documentation of this file.
1/*
2 This file is part of libmicrohttpd
3 Copyright (C) 2007 Daniel Pittman and Christian Grothoff
4 Copyright (C) 2015-2023 Evgeny Grin (Karlson2k)
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19*/
20
29#ifndef CONNECTION_H
30#define CONNECTION_H
31
32#include "internal.h"
33
37#define MHD_ERR_AGAIN_ (-3073)
38
42#define MHD_ERR_CONNRESET_ (-3074)
43
48#define MHD_ERR_NOTCONN_ (-3075)
49
53#define MHD_ERR_NOMEM_ (-3076)
54
58#define MHD_ERR_BADF_ (-3077)
59
63#define MHD_ERR_INVAL_ (-3078)
64
68#define MHD_ERR_OPNOTSUPP_ (-3079)
69
73#define MHD_ERR_PIPE_ (-3080)
74
78#define MHD_ERR_TLS_ (-4097)
79
80
86void
87MHD_set_http_callbacks_ (struct MHD_Connection *connection);
88
89
95void
97
107void
109 bool socket_error);
110
111
120void
122
123
136enum MHD_Result
137MHD_connection_handle_idle (struct MHD_Connection *connection);
138
139
146void
148
149
159void
160MHD_connection_close_ (struct MHD_Connection *connection,
161 enum MHD_RequestTerminationCode termination_code);
162
163
164#ifdef HTTPS_SUPPORT
170void
172
173#else /* ! HTTPS_SUPPORT */
174#define MHD_connection_finish_forward_(conn) (void) conn
175#endif /* ! HTTPS_SUPPORT */
176
177
178#ifdef EPOLL_SUPPORT
187enum MHD_Result
188MHD_connection_epoll_update_ (struct MHD_Connection *connection);
189
190#endif
191
199void
200MHD_update_last_activity_ (struct MHD_Connection *connection);
201
202
212void *
214 size_t size);
215
216#endif
void MHD_connection_set_initial_state_(struct MHD_Connection *c)
Definition: connection.c:7044
void MHD_connection_handle_write(struct MHD_Connection *connection)
Definition: connection.c:6579
void * MHD_connection_alloc_memory_(struct MHD_Connection *connection, size_t size)
Definition: connection.c:651
void MHD_set_http_callbacks_(struct MHD_Connection *connection)
Definition: connection.c:7611
#define MHD_connection_finish_forward_(conn)
Definition: connection.h:174
enum MHD_Result MHD_connection_handle_idle(struct MHD_Connection *connection)
Definition: connection.c:7174
void MHD_connection_handle_read(struct MHD_Connection *connection, bool socket_error)
Definition: connection.c:6406
void MHD_update_last_activity_(struct MHD_Connection *connection)
void MHD_connection_close_(struct MHD_Connection *connection, enum MHD_RequestTerminationCode termination_code)
void MHD_connection_mark_closed_(struct MHD_Connection *connection)
MHD_RequestTerminationCode
Definition: microhttpd.h:2296
MHD internal shared structures.
MHD_Result
Definition: microhttpd.h:158