Line | |
---|
1 | # WARPnet Client<->Server Architecture |
---|
2 | # WARPnet Parameter Definitions |
---|
3 | # |
---|
4 | # Author: Siddharth Gupta |
---|
5 | |
---|
6 | |
---|
7 | # Packet Type codes for Client<->Server communication |
---|
8 | |
---|
9 | SC_STAT = 100 |
---|
10 | |
---|
11 | SC_DATA_TO_NODE = 110 |
---|
12 | SC_DATA_FROM_NODE = 111 |
---|
13 | SC_DATA_TO_NODE_REFLECT = 112 |
---|
14 | |
---|
15 | SC_GRPID_ADD = 120 |
---|
16 | SC_GRPID_DEL = 121 |
---|
17 | |
---|
18 | SC_CONNECT = 130 |
---|
19 | |
---|
20 | SC_REG_ADD = 200 |
---|
21 | SC_REG_DEL = 201 |
---|
22 | |
---|
23 | SC_LOCK = 210 |
---|
24 | SC_UNLOCK = 211 |
---|
25 | SC_LOCK_NOTIFICATION = 212 |
---|
26 | SC_UNLOCK_NOTIFICATION = 213 |
---|
27 | |
---|
28 | SC_EMULATOR_PRESENT = 300 |
---|
29 | SC_EMULATOR_MSG_TO_BOX = 301 |
---|
30 | SC_EMULATOR_MSG_FROM_BOX = 302 |
---|
31 | |
---|
32 | # Status Codes |
---|
33 | |
---|
34 | SC_STAT_GROUP_UNMATCHED = 1 |
---|
35 | SC_STAT_NOT_CONN_NODE = 2 |
---|
36 | SC_NOT_REGISTERED = 3 |
---|
37 | SC_GRPID_GROUP_KNOWN = 4 |
---|
38 | SC_GRPID_SUCCESS = 5 |
---|
39 | SC_REG_SUCCESS = 6 |
---|
40 | SC_LOCK_EXISTS = 7 |
---|
41 | SC_LOCK_SUCCESS = 8 |
---|
42 | SC_LOCK_NOLOCK = 9 |
---|
43 | SC_LOCK_NOT_OWNER = 10 |
---|
44 | SC_CONNECT_SUCCESS = 12 |
---|
45 | SC_CONNECT_TYPE_MISMATCH = 13 |
---|
46 | SC_CONNECT_UNKNOWN_TYPE = 14 |
---|
47 | SC_DATA_LOCKED = 15 |
---|
48 | C_TIMEOUT = 16 |
---|
49 | |
---|
50 | |
---|
51 | # Registration Access Levels |
---|
52 | ADDRESSED_TO_ME = 0 |
---|
53 | ADDRESSED_TO_MY_GROUP = 1 |
---|
54 | ADDRESSED_TO_ANY_GROUP = 2 |
---|
55 | |
---|
56 | MAKE_AVAIL_ME = 0 |
---|
57 | MAKE_AVAIL_MY_GROUP = 1 |
---|
58 | MAKE_AVAIL_ANY_GROUP = 2 |
---|
59 | |
---|
60 | |
---|
61 | # Node Connection Types |
---|
62 | NODE_PCAP = 0 |
---|
63 | NODE_SOCKET = 1 |
---|
64 | NODE_LR = 2 |
---|
65 | |
---|
Note: See
TracBrowser
for help on using the repository browser.