pelican/server/test/src/TestUdpChunker.cpp
/**
 * @details
 * Constructs a new device from a QUdpSocket and opens it for reading.
 */
@details
Constructs a new device from a QUdpSocket and opens it for reading.
@details Constructs a new device from a QUdpSocket and opens it for reading .
QIODevice* TestUdpChunker::newDevice()
{
    QUdpSocket* socket = new QUdpSocket;
    socket->bind(QHostAddress(host()), port());
    while (socket->state() != QUdpSocket::BoundState) {}
    return socket;
}
QIODevice * TestUdpChunker :: newDevice ( ) { QUdpSocket * socket = new QUdpSocket ; socket -> bind ( QHostAddress ( host ( ) ) , port ( ) ) ; while ( socket -> state ( ) != QUdpSocket :: BoundState ) { } return socket ; }
@details
 Constructs a new device from a QUdpSocket and opens it for reading.
@details Constructs a new device from a QUdpSocket and opens it for reading .