summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/server/mainwindow/mainwindow.cpp8
-rw-r--r--src/server/mainwindow/mainwindow.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp
index 3bdf0e6..8e260b4 100644
--- a/src/server/mainwindow/mainwindow.cpp
+++ b/src/server/mainwindow/mainwindow.cpp
@@ -470,7 +470,7 @@ void MainWindow::broadcast(Client *from)
* @param to
* @param blockOthers
*/
-void MainWindow::unicast(Client *from, Client *to, bool blockOthers)
+void MainWindow::multicast(Client *from, Client *to, bool blockOthers)
{
_state = blockOthers ? State::ExclusiveUnicast : State::Unicast;
@@ -564,7 +564,7 @@ void MainWindow::onButtonTutorToStudent()
else if (_tutorFrame->client() == NULL)
QMessageBox::critical(this, tr("Projection"), sStrTutorOffline);
else
- unicast(_tutorFrame->client(), _selectedFrame->client());
+ multicast(_tutorFrame->client(), _selectedFrame->client());
}
/***************************************************************************//**
@@ -584,7 +584,7 @@ void MainWindow::onButtonStudentToTutor()
else if (_tutorFrame->client() == NULL)
QMessageBox::critical(this, tr("Projection"), sStrTutorOffline);
else
- unicast(_selectedFrame->client(), _tutorFrame->client());
+ multicast(_selectedFrame->client(), _tutorFrame->client());
}
@@ -604,7 +604,7 @@ void MainWindow::onButtonStudentToTutorExclusive()
else if (_tutorFrame->client() == NULL)
QMessageBox::critical(this, tr("Projection"), sStrTutorOffline);
else
- unicast(_tutorFrame->client(), _selectedFrame->client(), true);
+ multicast(_tutorFrame->client(), _selectedFrame->client(), true);
}
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h
index b246265..7f77ee6 100644
--- a/src/server/mainwindow/mainwindow.h
+++ b/src/server/mainwindow/mainwindow.h
@@ -56,6 +56,7 @@ private:
Broadcast
} _state;
+
Client * _streamingSource;
QList<ConnectionFrame*> _clientFrames;
@@ -78,7 +79,7 @@ private:
void savePosition(ConnectionFrame *cf);
bool isValidClient(Client* client);
void broadcast(Client *from);
- void unicast(Client *from, Client *to, bool blockOthers = false);
+ void multicast(Client *from, Client *to, bool blockOthers = false);
void closeEvent(QCloseEvent *e);
void changeEvent(QEvent *e);