confused while reading Qt Document
Unsolved
General and Desktop
-
Hello, All!
When I read Qt Document, I had some confusion about the member functions of QTcpServer.
- first, the description of QTcpServer::incomingConnection() says as following:
The base implementation creates a QTcpSocket, sets the socket descriptor and then stores the QTcpSocket in an internal list of pending connections. Finally newConnection() is emitted.- second, the description of QTcpServer::newConnection() is says this:
This signal is emitted every time a new connection is available, regardless of whether it has been added to the pending connections queue or not.So , my question is that when the signal of newConnection() is emitted? before or after the new connection is added in to pendding connections?