Update server.py

This commit is contained in:
Namhyeon Go 2024-03-04 23:15:39 +09:00 committed by GitHub
parent f296b165d6
commit 699e455bef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -525,6 +525,22 @@ class Extension():
"success": success
})
conn.send(message)
@classmethod
def readall(cls, conn):
data = b''
conn.settimeout(1)
while True:
try:
chunk = conn.recv(buffer_size)
if not chunk:
break
data += chunk
except:
pass
return data
def __init__(self):
self.type = ""