diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
commit | 59f5fd20e2f59ae186d5a461aef7782dd55e4e7b (patch) | |
tree | 10475faf0b6dcb812b64da679f4ae8ff01c45874 /data/lighttpd/lighttpd-1.4.53/src/connections.h | |
parent | f06e297cd175cca39745f6d1970225ae88aa68f1 (diff) |
Updated lighttpd.
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/src/connections.h')
-rw-r--r-- | data/lighttpd/lighttpd-1.4.53/src/connections.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/src/connections.h b/data/lighttpd/lighttpd-1.4.53/src/connections.h new file mode 100644 index 000000000..f498e5562 --- /dev/null +++ b/data/lighttpd/lighttpd-1.4.53/src/connections.h @@ -0,0 +1,23 @@ +#ifndef _CONNECTIONS_H_ +#define _CONNECTIONS_H_ +#include "first.h" + +#include "base.h" + +connection *connection_init(server *srv); +int connection_reset(server *srv, connection *con); +void connections_free(server *srv); + +connection * connection_accept(server *srv, server_socket *srv_sock); +connection * connection_accepted(server *srv, server_socket *srv_socket, sock_addr *cnt_addr, int cnt); + +int connection_set_state(server *srv, connection *con, connection_state_t state); +const char * connection_get_state(connection_state_t state); +const char * connection_get_short_state(connection_state_t state); +int connection_state_machine(server *srv, connection *con); +handler_t connection_handle_read_post_state(server *srv, connection *con); +handler_t connection_handle_read_post_error(server *srv, connection *con, int http_status); +int connection_write_chunkqueue(server *srv, connection *con, chunkqueue *c, off_t max_bytes); +void connection_response_reset(server *srv, connection *con); + +#endif |