开发者

pyQt equivalent of asyncore/asynchat

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜