Blackbelt
Blackbelt

Reputation: 157457

QUdpSocket and QThread

As far as I understand from the documentation the QUdpSocket are async but, still, reading from the socket is performed on the UI thread when the signal readyRead() is emitted. Is that correct? Is that safe from the performance perspective? Should I read the socket's content in another thread?

Upvotes: 1

Views: 1432

Answers (1)

Kamil Klimek
Kamil Klimek

Reputation: 13130

Everything depends if you will have a lot of data to process. I've used the TCP socket with avarage transfer ~20mbps without blocking gui. Best thing would be check it yourself. I think you won't have to move socket to other thread

Upvotes: 2

Related Questions