import{_ as e,o as n,c as s,e as a}from"./app-BvUYPzLF.js";const t={},o=a(`
说明: 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
说明: 初始化通道
参数:
源代码 或 在GitHub上查看
def __init__(self, name: str):
"""
初始化通道
Args:
name: 通道ID
"""
self._name = name
self._conn_send = None
self._conn_recv = None
self._closed = False
说明: 发送数据
参数:
源代码 或 在GitHub上查看
def send(self, data):
"""
发送数据
Args:
data: 数据
"""
pass
说明: 接收数据
返回: data: 数据
源代码 或 在GitHub上查看
def receive(self):
"""
接收数据
Returns:
data: 数据
"""
pass
说明: 关闭通道
源代码 或 在GitHub上查看
def close(self):
"""
关闭通道
"""
pass
`,21),i=[o];function l(c,p){return n(),s("div",null,i)}const r=e(t,[["render",l],["__file","socks_channel.html.vue"]]),u=JSON.parse('{"path":"/dev/api/comm/socks_channel.html","title":"liteyuki.comm.socks_channel","lang":"zh-CN","frontmatter":{"title":"liteyuki.comm.socks_channel","lastUpdated":false,"description":"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 : c...","head":[["link",{"rel":"alternate","hreflang":"en-us","href":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/comm/socks_channel.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/comm/socks_channel.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"liteyuki.comm.socks_channel"}],["meta",{"property":"og:description","content":"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 : c..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.comm.socks_channel\\",\\"image\\":[\\"\\"],\\"dateModified\\":null,\\"author\\":[]}"]]},"headers":[{"level":3,"title":"class SocksChannel","slug":"class-sockschannel","link":"#class-sockschannel","children":[]}],"git":{"createdTime":null,"updatedTime":null,"contributors":[]},"readingTime":{"minutes":0.8,"words":239},"filePathRelative":"dev/api/comm/socks_channel.md","autoDesc":true}');export{r as comp,u as data};