tinywebd

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/tinyweb.h	Fri Apr 17 11:45:08 2015 +0300
     1.3 @@ -0,0 +1,16 @@
     1.4 +#ifndef TINYWEB_H_
     1.5 +#define TINYWEB_H_
     1.6 +
     1.7 +void tw_set_port(int port);
     1.8 +int tw_set_root(const char *path);
     1.9 +int tw_set_logfile(const char *fname);
    1.10 +
    1.11 +int tw_start(void);
    1.12 +int tw_stop(void);
    1.13 +
    1.14 +int tw_get_sockets(int *socks);
    1.15 +int tw_get_maxfd(void);
    1.16 +int tw_handle_socket(int s);
    1.17 +
    1.18 +
    1.19 +#endif	/* TINYWEB_H_ */