summaryrefslogtreecommitdiffstats
path: root/src/web_server.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/web_server.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/web_server.h b/src/web_server.h
new file mode 100755
index 00000000..0d1e2da9
--- /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 */