GNU libmicrohttpd
1.0.6
Toggle main menu visibility
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
28
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
86
void
87
MHD_set_http_callbacks_
(
struct
MHD_Connection
*connection);
88
89
95
void
96
MHD_connection_set_initial_state_
(
struct
MHD_Connection
*c);
97
107
void
108
MHD_connection_handle_read
(
struct
MHD_Connection
*connection,
109
bool
socket_error);
110
111
120
void
121
MHD_connection_handle_write
(
struct
MHD_Connection
*connection);
122
123
136
enum
MHD_Result
137
MHD_connection_handle_idle
(
struct
MHD_Connection
*connection);
138
139
146
void
147
MHD_connection_mark_closed_
(
struct
MHD_Connection
*connection);
148
149
159
void
160
MHD_connection_close_
(
struct
MHD_Connection
*connection,
161
enum
MHD_RequestTerminationCode
termination_code);
162
163
164
#ifdef HTTPS_SUPPORT
170
void
171
MHD_connection_finish_forward_
(
struct
MHD_Connection
*connection);
172
173
#else
/* ! HTTPS_SUPPORT */
174
#define MHD_connection_finish_forward_(conn) (void) conn
175
#endif
/* ! HTTPS_SUPPORT */
176
177
178
#ifdef EPOLL_SUPPORT
187
enum
MHD_Result
188
MHD_connection_epoll_update_ (
struct
MHD_Connection
*connection);
189
190
#endif
191
199
void
200
MHD_update_last_activity_
(
struct
MHD_Connection
*connection);
201
202
212
void
*
213
MHD_connection_alloc_memory_
(
struct
MHD_Connection
*connection,
214
size_t
size);
215
216
#endif
MHD_connection_set_initial_state_
void MHD_connection_set_initial_state_(struct MHD_Connection *c)
Definition
connection.c:7374
MHD_connection_handle_write
void MHD_connection_handle_write(struct MHD_Connection *connection)
Definition
connection.c:6909
MHD_connection_alloc_memory_
void * MHD_connection_alloc_memory_(struct MHD_Connection *connection, size_t size)
Definition
connection.c:705
MHD_set_http_callbacks_
void MHD_set_http_callbacks_(struct MHD_Connection *connection)
Definition
connection.c:7941
MHD_connection_finish_forward_
#define MHD_connection_finish_forward_(conn)
Definition
connection.h:174
MHD_connection_handle_idle
enum MHD_Result MHD_connection_handle_idle(struct MHD_Connection *connection)
Definition
connection.c:7504
MHD_connection_handle_read
void MHD_connection_handle_read(struct MHD_Connection *connection, bool socket_error)
Definition
connection.c:6736
MHD_update_last_activity_
void MHD_update_last_activity_(struct MHD_Connection *connection)
Definition
connection.c:6691
MHD_connection_close_
void MHD_connection_close_(struct MHD_Connection *connection, enum MHD_RequestTerminationCode termination_code)
Definition
connection.c:1332
MHD_connection_mark_closed_
void MHD_connection_mark_closed_(struct MHD_Connection *connection)
Definition
connection.c:1294
MHD_RequestTerminationCode
MHD_RequestTerminationCode
Definition
microhttpd.h:2322
internal.h
MHD internal shared structures.
MHD_Result
MHD_Result
Definition
microhttpd.h:163
MHD_Connection
Definition
internal.h:1325
src
microhttpd
connection.h
Generated by
1.17.0