GNU libmicrohttpd  0.9.29
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 
33 
39 void
40 MHD_set_http_callbacks_ (struct MHD_Connection *connection);
41 
42 
53 int
54 MHD_connection_handle_read (struct MHD_Connection *connection);
55 
56 
67 int
68 MHD_connection_handle_write (struct MHD_Connection *connection);
69 
70 
83 int
84 MHD_connection_handle_idle (struct MHD_Connection *connection);
85 
86 
93 void
94 MHD_connection_mark_closed_ (struct MHD_Connection *connection);
95 
96 
106 void
107 MHD_connection_close_ (struct MHD_Connection *connection,
108  enum MHD_RequestTerminationCode termination_code);
109 
110 
111 #ifdef HTTPS_SUPPORT
112 
117 void
119 #else /* ! HTTPS_SUPPORT */
120 #define MHD_connection_finish_forward_(conn) (void)conn
121 #endif /* ! HTTPS_SUPPORT */
122 
123 
124 #ifdef EPOLL_SUPPORT
125 
133 int
134 MHD_connection_epoll_update_ (struct MHD_Connection *connection);
135 #endif
136 
144 void
145 MHD_update_last_activity_ (struct MHD_Connection *connection);
146 
147 #endif
int MHD_connection_handle_write(struct MHD_Connection *connection)
Definition: connection.c:2630
void MHD_set_http_callbacks_(struct MHD_Connection *connection)
Definition: connection.c:3439
MHD_RequestTerminationCode
Definition: microhttpd.h:1574
void MHD_connection_close_(struct MHD_Connection *connection, enum MHD_RequestTerminationCode termination_code)
Definition: connection.c:592
void MHD_update_last_activity_(struct MHD_Connection *connection)
Definition: connection.c:2522
void MHD_connection_mark_closed_(struct MHD_Connection *connection)
Definition: connection.c:554
int MHD_connection_handle_idle(struct MHD_Connection *connection)
Definition: connection.c:2895
internal shared structures
int MHD_connection_handle_read(struct MHD_Connection *connection)
Definition: connection.c:2560
#define MHD_connection_finish_forward_(conn)
Definition: connection.h:120