Changeset 846 for trunk/src/network/socket/qtcpserver.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/network/socket/qtcpserver.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 563 563 use its setSocketDescriptor() method. 564 564 565 \sa newConnection(), nextPendingConnection() 565 \sa newConnection(), nextPendingConnection(), addPendingConnection() 566 566 */ 567 567 void QTcpServer::incomingConnection(int socketDescriptor) … … 573 573 QTcpSocket *socket = new QTcpSocket(this); 574 574 socket->setSocketDescriptor(socketDescriptor); 575 addPendingConnection(socket); 576 } 577 578 /*! 579 This function is called by QTcpServer::incomingConnection() 580 to add the \a socket to the list of pending incoming connections. 581 582 \note Don't forget to call this member from reimplemented 583 incomingConnection() if you do not want to break the 584 Pending Connections mechanism. 585 586 \sa incomingConnection() 587 \since 4.7 588 */ 589 void QTcpServer::addPendingConnection(QTcpSocket* socket) 590 { 575 591 d_func()->pendingConnections.append(socket); 576 592 }
Note:
See TracChangeset
for help on using the changeset viewer.