_udp.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:aiotk 作者: AndreLouisCaron 项目源码 文件源码
def udp_writer(socket, oqueue):
    """Forward packets to the UDP socket."""

    while True:
        peer, data = await oqueue.get()
        try:
            socket.sendto(data, peer)
        finally:
            oqueue.task_done()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号