Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/network/socket/qtcpserver.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    563563    use its setSocketDescriptor() method.
    564564
    565     \sa newConnection(), nextPendingConnection()
     565    \sa newConnection(), nextPendingConnection(), addPendingConnection()
    566566*/
    567567void QTcpServer::incomingConnection(int socketDescriptor)
     
    573573    QTcpSocket *socket = new QTcpSocket(this);
    574574    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*/
     589void QTcpServer::addPendingConnection(QTcpSocket* socket)
     590{
    575591    d_func()->pendingConnections.append(socket);
    576592}
Note: See TracChangeset for help on using the changeset viewer.