diff options
author | Sebastien Braun | 2010-07-15 01:12:17 +0200 |
---|---|---|
committer | Sebastien Braun | 2010-07-15 01:12:17 +0200 |
commit | 94b88e75b9ebeaf9abb2adef130fdf971884e7b4 (patch) | |
tree | cc0bb545880b0d159267290d7aa5c63693905dcb /src/net/mcast/McastPGMSocket.h | |
parent | Change to shorter NAK intervals for performance. (diff) | |
download | pvs-94b88e75b9ebeaf9abb2adef130fdf971884e7b4.tar.gz pvs-94b88e75b9ebeaf9abb2adef130fdf971884e7b4.tar.xz pvs-94b88e75b9ebeaf9abb2adef130fdf971884e7b4.zip |
* Upgrade OpenPGM to current trunk
* Implement wait-for-shutdown for McastPGMSocket
* Work around bug in UDP encapsulation
Diffstat (limited to 'src/net/mcast/McastPGMSocket.h')
-rw-r--r-- | src/net/mcast/McastPGMSocket.h | 5 |
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(); }; |