添加DEBUG功能

This commit is contained in:
CHAMPION923
2025-06-04 13:01:52 +08:00
parent c95424bb70
commit 6a85e67abf
2 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
from _typeshed import Self
from ctypes import set_errno
import socket
@@ -25,6 +27,8 @@ class TcpServer:
def send_data(self, data: bytes):
self.conn.sendall(data)
def close(self):
def conn_close(self):
self.conn.close()
def close(self):
self.sock.close()