ab45f8a1d7ffe307834e7789a8649b956363b238
[darkstat] / http.h
1 /* darkstat 3
2 * copyright (c) 2001-2006 Emil Mikulic.
3 *
4 * http.h: embedded webserver.
5 */
6
7 #include <sys/time.h>
8 #include <sys/select.h>
9 #include <netinet/in.h>
10
11 extern const char *base_url;
12
13 void http_init_base(const char *path);
14 void http_init(const char * bindaddr, const unsigned short bindport,
15 const int max_conn);
16 void http_fd_set(fd_set *recv_set, fd_set *send_set, int *max_fd,
17 struct timeval *timeout, int *need_timeout);
18 void http_poll(fd_set *read_set, fd_set *write_set);
19
20 /* vim:set ts=3 sw=3 tw=78 expandtab: */