-
Notifications
You must be signed in to change notification settings - Fork 1
/
net_cmd.tbh
47 lines (36 loc) · 1.07 KB
/
net_cmd.tbh
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
'=============================================================
' NET_CMD.TBS
'=============================================================
#ifndef LOGIN_TOUT_CONST
#define LOGIN_TOUT_CONST 600
#endif
#ifndef MAX_NUM_SDF_LINES
#define MAX_NUM_SDF_LINES 14
#endif
#ifndef MAX_NET_CMD_LEN
#define MAX_NET_CMD_LEN 131 'max length of network command
#endif
#ifndef MAX_NET_RPL_LEN
#define MAX_NET_RPL_LEN 255 'max length of network replies
#endif
#ifndef NUM_VSPD_SER_PORTS
#define NUM_VSPD_SER_PORTS 0 'num of serial ports for remote access (with VSPD, etc.)
#endif
#ifndef SDF_FILE
#define SDF_FILE "sdf.txt"
#endif
#ifndef NCMD_TX_BUF_SIZE
#define NCMD_TX_BUF_SIZE 2
#endif
#ifndef NCMD_RX_BUF_SIZE
#define NCMD_RX_BUF_SIZE 2
#endif
const CMD_ESC_CHAR = "@"
const PAT_BLINK_BOTH_IN_TURNS_FAST= "GRGRGRGR**"
const PAT_GREEN_LOOP= "G~"
declare num_sdf as byte
declare sdf_addr(MAX_NUM_SDF_LINES) as word
declare udp_sock as byte
declare sub net_cmd_init
declare sub net_cmd_proc(cmd_mode as cmd_modes, error_mode as no_yes)
declare sub sock_closed_check_net_login(sock_num as byte)