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?
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.