开发者

pyQt equivalent of asyncore/asynchat

开发者 https://www.devze.com 2023-03-19 14:55 出处:网络
Is there an equivalent of asyncore/asynchat in pyQt ? If not, then i trust there wouldn\'t be a problem by just using asy开发者_Python百科ncore/asynchat in a client-server GUI application, right?Yes,

Is there an equivalent of asyncore/asynchat in pyQt ?

If not, then i trust there wouldn't be a problem by just using asy开发者_Python百科ncore/asynchat in a client-server GUI application, right?


Yes, QTcpSocket/QTcpServer in QNetwork module can work asynchronously, like most of QNetwork's classes.

From documentation at 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消