diff options
author | Sebastien Braun | 2010-07-19 11:57:29 +0200 |
---|---|---|
committer | Sebastien Braun | 2010-07-19 11:57:29 +0200 |
commit | f4474ef4943890548926190e8ec1b1e779c8e647 (patch) | |
tree | c7df4e12f083fe5b992811bb4faf3b2b285defb0 /src/core | |
parent | McastConfiguration's copy constructor should allow specifying a parent QObject (diff) | |
download | pvs-f4474ef4943890548926190e8ec1b1e779c8e647.tar.gz pvs-f4474ef4943890548926190e8ec1b1e779c8e647.tar.xz pvs-f4474ef4943890548926190e8ec1b1e779c8e647.zip |
Forward MCASTFTANNOUNCE and MCASTFTRETRY messages in pvsmgr and pvsmgrtouch.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/pvsConnectionManager.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/core/pvsConnectionManager.cpp b/src/core/pvsConnectionManager.cpp index 8a35ca9..5bf6418 100644 --- a/src/core/pvsConnectionManager.cpp +++ b/src/core/pvsConnectionManager.cpp @@ -218,6 +218,25 @@ void PVSConnectionManager::onCommand(PVSMsg command) break; } } + else if (ident == "MCASTFTANNOUNCE") + { + _pvsServer.sendToAll(command); + } + else if (ident == "MCASTFTRETRY") + { + QStringList fields = message.split(':'); + if (!fields.size() == 2) + { + qDebug() << "Malformed MCASTFTRETRY message:" << message; + return; + } + + PVSClient* client = getClientFromUsername(fields[0]); + if (client) + { + client->sendMessage(command); + } + } } void PVSConnectionManager::onChat(PVSMsg chatMsg) { |