121 /* |
121 /* |
122 * EventHttpIO |
122 * EventHttpIO |
123 * |
123 * |
124 * defined in sesionhandler.c |
124 * defined in sesionhandler.c |
125 */ |
125 */ |
|
126 typedef struct EventHttpIO EventHttpIO; |
126 |
127 |
127 int connection_read(Connection *conn, void *buf, int len); |
128 int connection_read(Connection *conn, void *buf, int len); |
128 int connection_write(Connection *conn, const void *buf, int len); |
129 int connection_write(Connection *conn, const void *buf, int len); |
129 void connection_close(Connection *conn); |
130 void connection_close(Connection *conn); |
130 int connection_ssl_read(Connection *conn, void *buf, int len); |
131 int connection_ssl_read(Connection *conn, void *buf, int len); |
155 |
156 |
156 SessionHandler* create_event_session_handler(pool_handle_t *pool); |
157 SessionHandler* create_event_session_handler(pool_handle_t *pool); |
157 |
158 |
158 void evt_enq_conn(SessionHandler *handler, Connection *conn); |
159 void evt_enq_conn(SessionHandler *handler, Connection *conn); |
159 |
160 |
|
161 EventHttpIO* evt_req_init(SessionHandler *handler, Connection *conn); |
|
162 |
160 int evt_request_ssl_accept(EventHandler *handler, Event *event); |
163 int evt_request_ssl_accept(EventHandler *handler, Event *event); |
161 int evt_request_input(EventHandler *h, Event *event); |
164 int evt_request_input(EventHandler *h, Event *event); |
162 int evt_request_finish(EventHandler *h, Event *event); |
165 int evt_request_finish(EventHandler *h, Event *event); |
163 int evt_request_error(EventHandler *h, Event *event); |
166 int evt_request_error(EventHandler *h, Event *event); |
164 |
167 |
165 void evt_keep_alive(SessionHandler *handler, Connection *conn); |
168 void evt_keep_alive(SessionHandler *handler, Connection *conn); |
166 |
169 |
|
170 int evt_keep_alive_enqueue(EventHandler *h, Event *event); |
|
171 int evt_keep_alive_input_event(EventHandler *h, Event *event); |
|
172 |
|
173 void evt_keep_alive_destroy(EventHandler *h, EVWatchList *item); |
167 |
174 |
168 #ifdef __cplusplus |
175 #ifdef __cplusplus |
169 } |
176 } |
170 #endif |
177 #endif |
171 |
178 |