-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.h
75 lines (54 loc) · 1.47 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/******************************************************
* tunelizador http
* config.h
*******************************************************/
#ifndef CONFIG_H
#define CONFIG_H
/******************
* configuracion
*******************/
// tamanio baffers
#define SZ_SBUF 1024
#define SZ_REQ 4096
#define SZ_HOST 64
#define SZ_URL 128
#define SZ_FILE 64
// banner
#define BANNER "HTTP Tunnel v0.3 (C) 2013 Wassamei Likesomaway"
// debug ?
#define VERBOSE 1
// puerto de escucha (client)
#define B_HOST "127.0.0.1"
#define B_PORT 61000
// forward a host:port (server)
#define F_HOST "127.0.0.1"
#define F_PORT 22
// pendiente...
#define URL "server.jsp"
// user-agent, protocolo http (client)
#define USER_AGENT "Mozilla/5.0 (Windows NT 6.0; rv:12.0)"
// datos conexion servidor http (client)
#define HTTP_SERVER "127.0.0.1"
#define HTTP_PORT 80
#define HTTP_VER 0
// tunning conexion http (client)
#define HTTP_TIMEOUT 15 // en sec
#define HTTP_INTERVAL 100 // en msec (100)
// timeout lectura socket (client, server)
#define RECV_TIMEOUT 0
// fifos de envio y recepcion datos (server)
#define F_RECV "/tmp/.recv"
#define F_SEND "/tmp/.send"
// fichero pid (server)
#define F_PID "/tmp/.pid"
// directorio de trabajo daemon (server)
#define WORK_DIR "/tmp"
// fichero de logs (server)
#define F_LOG "server.log"
// permisos rw files (server)
#define F_MOD 0644
// prioridad daemon (19 mas baja) (server)
#define PRIO 19
// tiempo inactividad (client, server)
#define MAX_TIME 300
#endif