summaryrefslogtreecommitdiffstats
path: root/src/web_server.h
blob: 0d1e2da9253277091db43dcb4e2a70862dbc86fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */