Ejemplo n.º 1
0
void MainWindow::connectToDisplayCluster()
{
    bool ok = false;

    QString hostname = QInputDialog::getText(this, "Connect to DisplayCluster", "Hostname:", QLineEdit::Normal, "localhost", &ok);

    if(ok == true && hostname.isEmpty() != true)
    {
        g_dcSocket = dcStreamConnect(hostname.toStdString().c_str());

        if(g_dcSocket == NULL)
        {
            QMessageBox messageBox;
            messageBox.setText("Could not connect to DisplayCluster.");
            messageBox.exec();
        }
    }
}
Ejemplo n.º 2
0
void ImageStreamer::connect()
{
    dcSocket = dcStreamConnect( "localhost" );
}