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.
精彩评论