summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Kling <andreas.kling@nokia.com>2010-02-03 13:46:50 (GMT)
committerAndreas Kling <andreas.kling@nokia.com>2010-02-03 13:46:50 (GMT)
commitac42da3e5196bba720a11dd2955e741037ee28f1 (patch)
tree0852929919317f85a9951f8f48c6d0f62bced928
parent911736ce988f027970fd84c3d52be6e2dfe041c7 (diff)
parent7cfece145418864b415a91d5b872e65660eb3090 (diff)
downloadQt-ac42da3e5196bba720a11dd2955e741037ee28f1.zip
Qt-ac42da3e5196bba720a11dd2955e741037ee28f1.tar.gz
Qt-ac42da3e5196bba720a11dd2955e741037ee28f1.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6
-rw-r--r--src/network/socket/qtcpserver.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/socket/qtcpserver.cpp b/src/network/socket/qtcpserver.cpp
index 47a998c..404eee7 100644
--- a/src/network/socket/qtcpserver.cpp
+++ b/src/network/socket/qtcpserver.cpp
@@ -513,6 +513,10 @@ bool QTcpServer::hasPendingConnections() const
0 is returned if this function is called when there are no pending
connections.
+ \note The returned QTcpSocket object cannot be used from another
+ thread. If you want to use an incoming connection from another thread,
+ you need to override incomingConnection().
+
\sa hasPendingConnections()
*/
QTcpSocket *QTcpServer::nextPendingConnection()
@@ -543,6 +547,11 @@ QTcpSocket *QTcpServer::nextPendingConnection()
may not be usable with native socket functions, and should only be
used with QTcpSocket::setSocketDescriptor().
+ \note If you want to handle an incoming connection as a new QTcpSocket
+ object in another thread you have to pass the socketDescriptor
+ to the other thread and create the QTcpSocket object there and
+ use its setSocketDescriptor() method.
+
\sa newConnection(), nextPendingConnection()
*/
void QTcpServer::incomingConnection(int socketDescriptor)