source: ResearchApps/Measurement/warpnet_framework/warpnet_common_params.py

Last change on this file was 1519, checked in by sgupta, 14 years ago

WARPnet testing framework

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