Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementation of Qt's QTcpSocket ReadyRead signal

I want to know about Qt's implementation of QTcpSocket's ReadyRead signal. How is it implemented on Windows and on Linux? Using select(), poll(), epoll(), SIGIO or any other way? How does QTcpSocket know when to emit a ReadyRead signal?

like image 239
rick Avatar asked Oct 22 '22 10:10

rick


1 Answers

Since Qt is open-source, you can look at the source code directly, and see for yourself.

They even have it posted online.

The OS-specific parts are (I think) implemented in qnativesocketengine_unix.cpp and in qnativesocketengine_win.cpp.

like image 102
sashoalm Avatar answered Oct 27 '22 16:10

sashoalm