summaryrefslogtreecommitdiffstats
path: root/src/web_server.h
blob: 39f3bad918ab49f251b039499b325540163888dc (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(const char *ip, int port, int listen_backlog);
extern int create_listen_socket6(const char *ip, int port, int listen_backlog);
extern void *socket_listen_main(void *ptr);

#endif /* NETDATA_WEB_SERVER_H */