athspk
athspk

Reputation: 6772

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 asyncore/asynchat in a client-server GUI application, right?

Upvotes: 3

Views: 523

Answers (1)

utdemir
utdemir

Reputation: 27236

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.

Upvotes: 1

Related Questions