import{_ as s,c as a,o as i,a4 as e}from"./chunks/framework.C3o_UkTa.js";const u=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}'),n={name:"dev/api/comm/socks_channel.md"},t=e(`

liteyuki.comm.socks_channel

说明: Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/25 下午3:54 @Author : snowykami @Email : snowykami@outlook.com @File : channelv2.py @Software: PyCharm

class SocksChannel

def __init__(self, name: str)

说明: 初始化通道

参数:

源代码在GitHub上查看
python
def __init__(self, name: str):
    """
        初始化通道
        Args:
            name: 通道ID
        """
    self._name = name
    self._conn_send = None
    self._conn_recv = None
    self._closed = False

def send(self, data)

说明: 发送数据

参数:

源代码在GitHub上查看
python
def send(self, data):
    """
        发送数据
        Args:
            data: 数据
        """
    pass

def receive(self)

说明: 接收数据

返回: data: 数据

源代码在GitHub上查看
python
def receive(self):
    """
        接收数据
        Returns:
            data: 数据
        """
    pass

def close(self)

说明: 关闭通道

源代码在GitHub上查看
python
def close(self):
    """
        关闭通道
        """
    pass
`,21),l=[t];function h(p,k,o,r,d,c){return i(),a("div",null,l)}const y=s(n,[["render",h]]);export{u as __pageData,y as default};