pelican/output/src/TCPConnectionManager.cpp
/**
 * @details
 * Accept client connections for data
 */
@details
Accept client connections for data
@details Accept client connections for data
void TCPConnectionManager::acceptClientConnection()
{
    QTcpSocket *client = _tcpServer->nextPendingConnection();
    if (_processIncomming(client))
    {
        connect(client, SIGNAL(error(QAbstractSocket::SocketError)), this,
            SLOT(connectionError(QAbstractSocket::SocketError)),
            Qt::DirectConnection);
        connect(client, SIGNAL(readyRead()), this, SLOT(_incomingFromClient()),
            Qt::DirectConnection);
    }
    else {
        client->close();
        delete client;
    }
}
void TCPConnectionManager :: acceptClientConnection ( ) { QTcpSocket * client = _tcpServer -> nextPendingConnection ( ) ; if ( _processIncomming ( client ) ) { connect ( client , SIGNAL ( error ( QAbstractSocket :: SocketError ) ) , this , SLOT ( connectionError ( QAbstractSocket :: SocketError ) ) , Qt :: DirectConnection ) ; connect ( client , SIGNAL ( readyRead ( ) ) , this , SLOT ( _incomingFromClient ( ) ) , Qt :: DirectConnection ) ; } else { client -> close ( ) ; delete client ; } }
@details
 Accept client connections for data
@details Accept client connections for data
// Get new client connection // Connect socket error() signals // Closes the I/O device for the socket, // disconnects the socket's connection with the host, // closes the socket, and resets the name, address, // port number and underlying socket descriptor.