添加DEBUG功能
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user