2019-10-22 14:24:37 +00:00
|
|
|
"""
|
|
|
|
Global runtime variables.
|
|
|
|
"""
|
2017-01-12 05:58:35 +00:00
|
|
|
|
2017-01-11 13:27:19 +00:00
|
|
|
neededPubkeys = {}
|
2017-02-06 16:47:05 +00:00
|
|
|
streamsInWhichIAmParticipating = []
|
2017-01-11 13:27:19 +00:00
|
|
|
|
|
|
|
extPort = None
|
2019-10-22 14:24:37 +00:00
|
|
|
"""For UPnP"""
|
2017-01-11 13:27:19 +00:00
|
|
|
|
|
|
|
socksIP = None
|
2019-10-22 14:24:37 +00:00
|
|
|
"""for Tor hidden service"""
|
2017-01-11 16:00:00 +00:00
|
|
|
|
2019-10-22 14:24:37 +00:00
|
|
|
appdata = ''
|
|
|
|
"""holds the location of the application data storage directory"""
|
2017-01-14 22:20:15 +00:00
|
|
|
|
2018-04-18 10:34:12 +00:00
|
|
|
shutdown = 0
|
2019-10-22 14:24:37 +00:00
|
|
|
"""
|
2019-11-04 10:27:19 +00:00
|
|
|
Set to 1 by the `.shutdown.doCleanShutdown` function.
|
|
|
|
Used to tell the threads to exit.
|
2019-10-22 14:24:37 +00:00
|
|
|
"""
|
2018-04-09 04:38:48 +00:00
|
|
|
|
|
|
|
# Component control flags - set on startup, do not change during runtime
|
|
|
|
# The defaults are for standalone GUI (default operating mode)
|
2019-10-22 14:24:37 +00:00
|
|
|
enableNetwork = True
|
|
|
|
"""enable network threads"""
|
|
|
|
enableObjProc = True
|
2019-11-04 10:27:19 +00:00
|
|
|
"""enable object processing thread"""
|
2019-10-22 14:24:37 +00:00
|
|
|
enableAPI = True
|
|
|
|
"""enable API (if configured)"""
|
|
|
|
enableGUI = True
|
|
|
|
"""enable GUI (QT or ncurses)"""
|
|
|
|
enableSTDIO = False
|
|
|
|
"""enable STDIO threads"""
|
2017-02-02 14:48:56 +00:00
|
|
|
curses = False
|
|
|
|
|
2019-10-22 14:24:37 +00:00
|
|
|
sqlReady = False
|
2019-11-04 10:27:19 +00:00
|
|
|
"""set to true by `.threads.sqlThread` when ready for processing"""
|
2017-02-26 19:44:56 +00:00
|
|
|
|
2017-05-25 21:04:33 +00:00
|
|
|
maximumNumberOfHalfOpenConnections = 0
|
|
|
|
|
2017-05-28 22:24:07 +00:00
|
|
|
invThread = None
|
2017-07-05 06:57:44 +00:00
|
|
|
addrThread = None
|
2017-07-05 07:25:49 +00:00
|
|
|
downloadThread = None
|
2018-12-18 21:47:34 +00:00
|
|
|
uploadThread = None
|
2017-05-28 22:24:07 +00:00
|
|
|
|
2017-05-30 22:04:21 +00:00
|
|
|
ownAddresses = {}
|
|
|
|
|
2017-08-06 19:29:54 +00:00
|
|
|
discoveredPeers = {}
|
|
|
|
|
2018-02-03 10:46:39 +00:00
|
|
|
dandelion = 0
|
2018-04-05 09:50:34 +00:00
|
|
|
|
|
|
|
testmode = False
|
2018-07-05 13:37:16 +00:00
|
|
|
|
|
|
|
kivy = False
|
2018-09-04 12:44:28 +00:00
|
|
|
|
|
|
|
association = ''
|