socket-cyg 1.1.0__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {socket_cyg-1.1.0 → socket_cyg-1.2.0}/PKG-INFO +1 -1
- {socket_cyg-1.1.0 → socket_cyg-1.2.0}/pyproject.toml +1 -1
- {socket_cyg-1.1.0 → socket_cyg-1.2.0}/socket_cyg/socket_server_asyncio.py +9 -1
- {socket_cyg-1.1.0 → socket_cyg-1.2.0}/README.md +0 -0
- {socket_cyg-1.1.0 → socket_cyg-1.2.0}/socket_cyg/__init__.py +0 -0
- {socket_cyg-1.1.0 → socket_cyg-1.2.0}/socket_cyg/example/__init__.py +0 -0
- {socket_cyg-1.1.0 → socket_cyg-1.2.0}/socket_cyg/example/client_example.py +0 -0
- {socket_cyg-1.1.0 → socket_cyg-1.2.0}/socket_cyg/socket_client.py +0 -0
@@ -19,7 +19,15 @@ class CygSocketServerAsyncio:
|
|
19
19
|
tasks = {}
|
20
20
|
loop: AbstractEventLoop = None
|
21
21
|
|
22
|
-
def __init__(self, address="127.0.0.1", port=
|
22
|
+
def __init__(self, address: str = "127.0.0.1", port: int = 1830):
|
23
|
+
"""CygSocketServerAsyncio 构造方法.
|
24
|
+
|
25
|
+
Args:
|
26
|
+
address: 服务端 ip address.
|
27
|
+
port: 服务端端口.
|
28
|
+
"""
|
29
|
+
logging.basicConfig(level=logging.INFO, encoding="UTF-8", format=self.LOG_FORMAT)
|
30
|
+
|
23
31
|
self._address = address
|
24
32
|
self._port = port
|
25
33
|
self.logger = logging.getLogger(__name__)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|