mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +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 None
|
||||
|
||||
@staticmethod
|
||||
def countPacketsInQueue():
|
||||
"""!Get packets waiting in queue
|
||||
|
||||
@return Packets in queue"""
|
||||
return len(_clients)
|
||||
|
||||
@staticmethod
|
||||
def flushData():
|
||||
"""!To flush all existing data in queue"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue