summaryrefslogtreecommitdiffstats
path: root/src/pvs.cpp
diff options
context:
space:
mode:
authorSebastien Braun2010-08-04 17:28:45 +0200
committerSebastien Braun2010-08-04 17:28:45 +0200
commitf8e6e94b25a092d51acdec600465074b4eb32cb8 (patch)
tree8251b788b2a63abba5cf0d9e046102471cce1e59 /src/pvs.cpp
parentFix a bug where transfer IDs would linger in the pvs daemon's data structures... (diff)
downloadpvs-f8e6e94b25a092d51acdec600465074b4eb32cb8.tar.gz
pvs-f8e6e94b25a092d51acdec600465074b4eb32cb8.tar.xz
pvs-f8e6e94b25a092d51acdec600465074b4eb32cb8.zip
Make PGM interface configurable
Diffstat (limited to 'src/pvs.cpp')
-rw-r--r--src/pvs.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pvs.cpp b/src/pvs.cpp
index 202aa32..c217d52 100644
--- a/src/pvs.cpp
+++ b/src/pvs.cpp
@@ -728,6 +728,13 @@ void PVS::cancelIncomingMulticastTransfer(qulonglong transferID)
}
}
+void PVS::setMulticastInterface(QString const& interfaceName)
+{
+ QSettings settings;
+ settings.setValue("multicast/interface", interfaceName);
+ settings.sync();
+}
+
void PVS::onIncomingMulticastTransfer(QString const& sender, qulonglong transferID,
QString const& basename, qulonglong size, ushort port)
{