tinywebd

view src/tinyweb.h @ 7:5ec50ca0d071

separated the server code
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 17 Apr 2015 11:45:08 +0300
parents
children
line source
1 #ifndef TINYWEB_H_
2 #define TINYWEB_H_
4 void tw_set_port(int port);
5 int tw_set_root(const char *path);
6 int tw_set_logfile(const char *fname);
8 int tw_start(void);
9 int tw_stop(void);
11 int tw_get_sockets(int *socks);
12 int tw_get_maxfd(void);
13 int tw_handle_socket(int s);
16 #endif /* TINYWEB_H_ */