import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"dev/api/comm/socks_channel.md","filePath":"zh/dev/api/comm/socks_channel.md","lastUpdated":null}'),t={name:"dev/api/comm/socks_channel.md"},n=e('

模块 liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

说明: 初始化通道

参数:

源代码在GitHub上查看
python
def __init__(self, name: str):\n    self._name = name\n    self._conn_send = None\n    self._conn_recv = None\n    self._closed = False

func send(self, data)

说明: 发送数据

参数:

源代码在GitHub上查看
python
def send(self, data):\n    pass

func receive(self)

说明: 接收数据

返回: data: 数据

源代码在GitHub上查看
python
def receive(self):\n    pass

func close(self)

说明: 关闭通道

源代码在GitHub上查看
python
def close(self):\n    pass
',24),l=[n];function h(o,c,p,k,r,d){return i(),a("div",null,l)}const m=s(t,[["render",h]]);export{g as __pageData,m as default};