some little improvements

This commit is contained in:
Bastian Schroll 2018-02-03 22:32:28 +01:00
parent 4f72691c65
commit fd501c23dc
7 changed files with 15 additions and 13 deletions

View file

@ -21,10 +21,12 @@ import time
logging.debug("- %s loaded", __name__)
_dataPackets = [] # module wide global list for received data sets
# module wide global list for received data sets
_dataPackets = []
_lockDataPackets = threading.Lock()
_clients = {}
# module wide global list for all currently connected clients
_clients = {} # _clients[ThreadName] = {"address", "timestamp"}
_lockClients = threading.Lock()
@ -138,7 +140,7 @@ class TCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
return _clients
@staticmethod
def getData():
def getDataFromQueue():
"""!Function to get the data packages from server
must be polled by main program