summaryrefslogtreecommitdiffstats
path: root/src/net/mcast/McastPGMSocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/mcast/McastPGMSocket.h')
-rw-r--r--src/net/mcast/McastPGMSocket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/mcast/McastPGMSocket.h b/src/net/mcast/McastPGMSocket.h
index b0007a7..ad42aa5 100644
--- a/src/net/mcast/McastPGMSocket.h
+++ b/src/net/mcast/McastPGMSocket.h
@@ -22,6 +22,7 @@
#include <QQueue>
#include <src/net/mcast/McastConfiguration.h>
+#include <src/net/mcast/McastConstants.h>
class McastPGMSocket_priv;
class QTimer;
@@ -40,12 +41,14 @@ public:
bool open(McastConfiguration const* config, Direction direction);
bool finished() const;
+ void shutdown(int interval = DEFAULT_MULTICAST_SHUTDOWN_TIMEOUT);
signals:
void readyToSend();
void receivedPacket(QByteArray const& bytes);
void connectionReset();
void connectionFinished();
+ void shutdownComplete();
public slots:
void sendPacket(QByteArray const& bytes);
@@ -67,6 +70,8 @@ private:
QTimer* _nakTimeout;
QTimer* _dataTimeout;
QTimer* _sendTimeout;
+ QTimer* _shutdownTimer;
+ int _shutdown_timeout;
void setupNotifiers();
};