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?
Asked
Active
Viewed 999 times
6
-
Hi, I deleted the second part of your question, I hope it's not a problem. You should post it as a separate question instead. – sashoalm May 13 '13 at 15:45
1 Answers
2
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.
-
I'm pretty sure you won't find answers in the code for Linux, since it seems to be integrated into the gtk+ eventloop and use whatever gtk+ uses. – Janick Bernet Jun 18 '13 at 13:56
-
2
-
So where is the place (line numbers)? You gave an answer and many people read it. It's more efficient if someone searches once... (yeah, on it) – IceFire Mar 11 '23 at 06:38