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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: socket-cyg
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: CYG socket 封装
5
5
  Author: LiuWei
6
6
  Author-email: 183074632@qq.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "socket-cyg"
3
- version = "1.1.0"
3
+ version = "1.2.0"
4
4
  description = "CYG socket 封装"
5
5
  authors = ["LiuWei <183074632@qq.com>"]
6
6
  readme = "README.md"
@@ -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=8000):
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