Python与UDP异步 [英] Python asyncore with UDP

查看:51
本文介绍了Python与UDP异步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在 asyncore 中编写 UDP 客户端/服务器应用程序吗?我已经用 TCP 写了一个.我的愿望是将它与对 UDP 的支持集成.

Can I write an UDP client/server application in asyncore? I have already written one using TCP. My desire is to integrate it with support for UDP.

我的问题之前没有由以下人员提出/回答:Python异步UDP服务器

My question was not previously asked/answered by the following: Python asyncore UDP server

推荐答案

经过长时间的搜索,答案是.Asyncore 假设底层套接字是面向连接的,即 TCP.

After long search the answer is no. Asyncore assumes the underlying socket is connection-oriented, i.e. TCP.

这篇关于Python与UDP异步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆