pikastech 2a4115722e create socket.py
support socket on linux
2022-08-25 00:54:27 +08:00

14 lines
321 B
Python

from PikaObj import *
class socket:
def _gethostname() -> str: ...
def _bind(host: str, port: int): ...
def _listen(num: int): ...
def _accept(): ...
def _send(data: any): ...
def _close(): ...
def _connect(host: str, port: int): ...
def _recv(num: int) -> str: ...
def _init(): ...