aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/connection.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-12-20 04:23:00 +0000
committerChristian Grothoff <christian@grothoff.org>2007-12-20 04:23:00 +0000
commitc490e64780fd1c45592f5528bf755956f0f2eddb (patch)
treeaa34ac04246134cb8e32a2d81573c73079c0d764 /src/daemon/connection.h
parente787fde83a61e3f9290c589139b657c7c414201c (diff)
downloadlibmicrohttpd-c490e64780fd1c45592f5528bf755956f0f2eddb.tar.gz
libmicrohttpd-c490e64780fd1c45592f5528bf755956f0f2eddb.zip
new MHD with support for chunked encoding
Diffstat (limited to 'src/daemon/connection.h')
-rw-r--r--src/daemon/connection.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/daemon/connection.h b/src/daemon/connection.h
index e00a83e1..a1763b55 100644
--- a/src/daemon/connection.h
+++ b/src/daemon/connection.h
@@ -39,18 +39,14 @@ MHD_connection_get_fdset (struct MHD_Connection *connection,
39 fd_set * write_fd_set, 39 fd_set * write_fd_set,
40 fd_set * except_fd_set, int *max_fd); 40 fd_set * except_fd_set, int *max_fd);
41 41
42
43/**
44 * Call the handler of the application for this
45 * connection.
46 */
47void MHD_call_connection_handler (struct MHD_Connection *connection);
48
49/** 42/**
50 * This function handles a particular connection when it has been 43 * This function handles a particular connection when it has been
51 * determined that there is data to be read off a socket. All implementations 44 * determined that there is data to be read off a socket. All implementations
52 * (multithreaded, external select, internal select) call this function 45 * (multithreaded, external select, internal select) call this function
53 * to handle reads. 46 * to handle reads.
47 *
48 * @return MHD_YES if we should continue to process the
49 * connection (not dead yet), MHD_NO if it died
54 */ 50 */
55int MHD_connection_handle_read (struct MHD_Connection *connection); 51int MHD_connection_handle_read (struct MHD_Connection *connection);
56 52
@@ -60,8 +56,23 @@ int MHD_connection_handle_read (struct MHD_Connection *connection);
60 * determined that the socket can be written to. If there is no data 56 * determined that the socket can be written to. If there is no data
61 * to be written, however, the function call does nothing. All implementations 57 * to be written, however, the function call does nothing. All implementations
62 * (multithreaded, external select, internal select) call this function 58 * (multithreaded, external select, internal select) call this function
59 *
60 * @return MHD_YES if we should continue to process the
61 * connection (not dead yet), MHD_NO if it died
63 */ 62 */
64int MHD_connection_handle_write (struct MHD_Connection *connection); 63int MHD_connection_handle_write (struct MHD_Connection *connection);
65 64
66 65
66/**
67 * This function was created to handle per-connection processing that
68 * has to happen even if the socket cannot be read or written to. All
69 * implementations (multithreaded, external select, internal select)
70 * call this function.
71 *
72 * @return MHD_YES if we should continue to process the
73 * connection (not dead yet), MHD_NO if it died
74 */
75int
76MHD_connection_handle_idle (struct MHD_Connection *connection);
77
67#endif 78#endif