Sample Configuration File

Currenlty, the configuration file is merely a python data structure of
nexted dictionaries and lists. Eventually it should be moved to a
regular text-based configuration file with a parser to build the data
structure.
This commit is contained in:
Cort Buffington 2013-07-11 19:50:38 -05:00
parent bd5b0a074d
commit 2e32fe4881
1 changed files with 35 additions and 0 deletions

35
my_ipsc_config_SAMPLE.py Normal file
View File

@ -0,0 +1,35 @@
# Configuration file for IPSC.py -- each network has several parts, some of this is muted by the script once it runs, thus there are placeholders
NETWORK = {
'IPSC1': {
'LOCAL': {
'DESCRIPTION': 'IPSC Network name',
'MODE': b'\x6A',
'FLAGS': b'\x00\x00\x00\x14',
'PORT': 50001,
'ALIVE_TIMER': 5, # Seconds between keep-alives and registration attempts
'RADIO_ID': b'\x00\x00\x00\x0A',
'AUTH_KEY': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
},
'MASTER': {
'IP': '1.2.3.4',
'PORT': 50000,
'STATUS': {
'RADIO_ID': b'\x00\x00\x00\x00',
'CONNECTED': 0,
'KEEP_ALIVES_MISSED': 0,
'MODE': b'\x00',
'FLAGS': b'\x00\x00\x00\x00',
}
},
'PEERS': []
# each list item contains {
# 'IP': '100.200.1.1',
# 'PORT': 50000,
# 'RADIO_ID': b'\x00\x00\x00\xFF',
# 'STATUS': {
# 'CONNECTED': 0,
# 'KEEP_ALIVES_MISSED': 0
# }
# }
}
}