↑ 1 #ifndef CLIENT_H
↑ 2 #define CLIENT_H
↑ 3
↑ 4 #include "queue.h"
↑ 5 #include "rh_socket.h"
↑ 6 #include "server.h"
↑ 7 #include "rhttpd.h"
↑ 8 #include "http_request.h"
↑ 9
↑10 typedef struct client client_t;
↑11
↑12 struct client {
↑13 struct server *server;
↑14
↑15 struct rh_socket socket;
↑16
↑17 struct http_request_list request;
↑18
↑19 int keepalive;
↑20
↑21 TAILQ_ENTRY(client) clients;
↑22
↑23 FIXED_BUFFER(,RHTTPD_CLIENT_BUFFER_SZ) buffer;
↑24 };
↑25
↑26 int client_init (client_t *client, rh_socket_t *client_socket,
↑27 server_t *server);
↑28 void client_destroy (client_t *client);
↑29 void client_free (client_t *client);
↑30 void client_reset (client_t *client);
↑31
↑32
↑33 #endif /* CLIENT_H */
syntax highlighted by Code2HTML, v. 0.9.1