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(); } } }
void ImageStreamer::connect() { dcSocket = dcStreamConnect( "localhost" ); }