-
Notifications
You must be signed in to change notification settings - Fork 23
/
config.h
42 lines (33 loc) · 850 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef KCPTUN_CONFIG_H
#define KCPTUN_CONFIG_H
#include "utils.h"
DECLARE_string(localaddr);
DECLARE_string(remoteaddr);
DECLARE_string(targetaddr);
DECLARE_string(key);
DECLARE_string(crypt);
DECLARE_string(mode);
DECLARE_string(logfile);
DECLARE_int32(conn);
DECLARE_int32(autoexpire);
DECLARE_int32(mtu);
DECLARE_int32(scavengettl);
DECLARE_int32(sndwnd);
DECLARE_int32(rcvwnd);
DECLARE_int32(datashard);
DECLARE_int32(parityshard);
DECLARE_int32(dscp);
DECLARE_int32(nodelay);
DECLARE_int32(resend);
DECLARE_int32(nc);
DECLARE_int32(sockbuf);
DECLARE_int32(keepalive);
DECLARE_int32(interval);
DECLARE_bool(kvar);
DECLARE_bool(nocomp);
DECLARE_bool(acknodelay);
void parse_command_lines(int argc, char **argv);
std::string get_host(const std::string &addr);
std::string get_port(const std::string &addr);
void process_configs();
#endif