GNU libmicrohttpd  0.9.73
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 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
28 #ifndef CONNECTION_H
29 #define CONNECTION_H
30 
31 #include "internal.h"
32 
36 #define MHD_ERR_AGAIN_ (-3073)
37 
41 #define MHD_ERR_CONNRESET_ (-3074)
42 
47 #define MHD_ERR_NOTCONN_ (-3075)
48 
52 #define MHD_ERR_NOMEM_ (-3076)
53 
57 #define MHD_ERR_BADF_ (-3077)
58 
62 #define MHD_ERR_INVAL_ (-3078)
63 
67 #define MHD_ERR_OPNOTSUPP_ (-3079)
68 
72 #define MHD_ERR_PIPE_ (-3080)
73 
77 #define MHD_ERR_TLS_ (-4097)
78 
79 
85 void
86 MHD_set_http_callbacks_ (struct MHD_Connection *connection);
87 
88 
97 void
98 MHD_connection_handle_read (struct MHD_Connection *connection);
99 
100 
109 void
110 MHD_connection_handle_write (struct MHD_Connection *connection);
111 
112 
125 enum MHD_Result
126 MHD_connection_handle_idle (struct MHD_Connection *connection);
127 
128 
135 void
136 MHD_connection_mark_closed_ (struct MHD_Connection *connection);
137 
138 
148 void
149 MHD_connection_close_ (struct MHD_Connection *connection,
150  enum MHD_RequestTerminationCode termination_code);
151 
152 
153 #ifdef HTTPS_SUPPORT
154 
159 void
161 
162 #else /* ! HTTPS_SUPPORT */
163 #define MHD_connection_finish_forward_(conn) (void) conn
164 #endif /* ! HTTPS_SUPPORT */
165 
166 
167 #ifdef EPOLL_SUPPORT
168 
176 enum MHD_Result
177 MHD_connection_epoll_update_ (struct MHD_Connection *connection);
178 
179 #endif
180 
188 void
189 MHD_update_last_activity_ (struct MHD_Connection *connection);
190 
191 #endif
MHD_update_last_activity_
void MHD_update_last_activity_(struct MHD_Connection *connection)
Definition: connection_options.c:88
internal.h
internal shared structures
MHD_connection_finish_forward_
#define MHD_connection_finish_forward_(conn)
Definition: connection.h:163
MHD_set_http_callbacks_
void MHD_set_http_callbacks_(struct MHD_Connection *connection)
Definition: connection.c:3892
MHD_connection_handle_idle
enum MHD_Result MHD_connection_handle_idle(struct MHD_Connection *connection)
Definition: connection.c:3348
MHD_connection_handle_write
void MHD_connection_handle_write(struct MHD_Connection *connection)
Definition: connection.c:2936
MHD_connection_handle_read
void MHD_connection_handle_read(struct MHD_Connection *connection)
Definition: connection.c:2818
MHD_connection_mark_closed_
void MHD_connection_mark_closed_(struct MHD_Connection *connection)
Definition: connection_close.c:36
MHD_connection_close_
void MHD_connection_close_(struct MHD_Connection *connection, enum MHD_RequestTerminationCode termination_code)
Definition: connection_close.c:83
MHD_RequestTerminationCode
MHD_RequestTerminationCode
Definition: microhttpd.h:1851
MHD_Connection
Definition: internal.h:634
MHD_Result
MHD_Result
Definition: microhttpd.h:139