Skip to content

Module liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel

func __init__(self, name: str)

Description: 初始化通道

Arguments:

  • name: 通道ID
Source code or View on GitHub
python
def __init__(self, name: str):
    self._name = name
    self._conn_send = None
    self._conn_recv = None
    self._closed = False

func send(self, data)

Description: 发送数据

Arguments:

  • data: 数据
Source code or View on GitHub
python
def send(self, data):
    pass

func receive(self)

Description: 接收数据

Return: data: 数据

Source code or View on GitHub
python
def receive(self):
    pass

func close(self)

Description: 关闭通道

Source code or View on GitHub
python
def close(self):
    pass

Documentation built with VitePress | API references generated by litedoc