mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-03-28 07:34:48 +01:00
add a countPacketsInQueue() method to server
This commit is contained in:
parent
2e515ff15d
commit
03e2f6091e
|
|
@ -141,6 +141,13 @@ class TCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
|
||||||
return message
|
return message
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def countPacketsInQueue():
|
||||||
|
"""!Get packets waiting in queue
|
||||||
|
|
||||||
|
@return Packets in queue"""
|
||||||
|
return len(_clients)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def flushData():
|
def flushData():
|
||||||
"""!To flush all existing data in queue"""
|
"""!To flush all existing data in queue"""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue