File: http.h

package info (click to toggle)
darkstat 3.0.722-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 868 kB
  • sloc: ansic: 7,585; sh: 660; javascript: 213; makefile: 174; php: 15
file content (18 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* darkstat 3
 * copyright (c) 2001-2016 Emil Mikulic.
 *
 * http.h: embedded webserver.
 */

#include <sys/time.h>
#include <sys/select.h>

void http_init_base(const char *url);
void http_add_bindaddr(const char *bindaddr);
void http_listen(const unsigned short bindport);
void http_fd_set(fd_set *recv_set, fd_set *send_set, int *max_fd,
   struct timeval *timeout, int *need_timeout);
void http_poll(fd_set *read_set, fd_set *write_set);
void http_stop(void);

/* vim:set ts=3 sw=3 tw=78 expandtab: */