diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2016-03-30 21:40:42 +0000 |
---|---|---|
committer | Federico Ceratto <federico.ceratto@gmail.com> | 2016-03-30 21:40:42 +0000 |
commit | 9ce153ce7167c11adba8ac225edc7a707e97c6eb (patch) | |
tree | 9f6e849cce2dcc7e5b4e9e6252c843dc2d0787a2 /src/web_server.h | |
download | netdata-9ce153ce7167c11adba8ac225edc7a707e97c6eb.tar.xz netdata-9ce153ce7167c11adba8ac225edc7a707e97c6eb.zip |
Imported Upstream version 1.0.0upstream/1.0.0
Diffstat (limited to 'src/web_server.h')
-rwxr-xr-x | src/web_server.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/web_server.h b/src/web_server.h new file mode 100755 index 000000000..0d1e2da92 --- /dev/null +++ b/src/web_server.h @@ -0,0 +1,20 @@ +#ifndef NETDATA_WEB_SERVER_H +#define NETDATA_WEB_SERVER_H 1 + +#define WEB_PATH_FILE "file" +#define WEB_PATH_DATA "data" +#define WEB_PATH_DATASOURCE "datasource" +#define WEB_PATH_GRAPH "graph" + +#define LISTEN_PORT 19999 +#define LISTEN_BACKLOG 100 + +extern int listen_backlog; +extern int listen_fd; +extern int listen_port; + +extern int create_listen_socket4(int port, int listen_backlog); +extern int create_listen_socket6(int port, int listen_backlog); +extern void *socket_listen_main(void *ptr); + +#endif /* NETDATA_WEB_SERVER_H */ |