在 pyQt 中是否有等同于 asyncore/asynchat 的东西?
如果没有,那么我相信在客户端-服务器 GUI 应用程序中使用 asyncore/asynchat 不会有问题,对吧?
最佳答案
是的,QNetwork 模块中的 QTcpSocket/QTcpServer 可以异步工作,就像大多数 QNetwork 的类一样。
来自 http://doc.qt.io/qt-4.8/network-programming.html 的文档:
QTcpSocket works asynchronously and emits signals to report status changes and errors, just like QNetworkAccessManager and QFtp.
关于python - pyQt 相当于 asyncore/asynchat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6671038/