def send(channel, *args):
""" Send a message to a channel """
buf = pickle.dumps(args)
value = socket.htonl(len(buf))
size = struct.pack("L",value)
channel.send(size)
channel.send(buf)
communication.py 文件源码
python
阅读 35
收藏 0
点赞 0
评论 0
评论列表
文章目录