2023-08-04 Fred Gleason <fredg@paravelsystems.com>

* Added a destructor to the 'RDMulticaster' class.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-08-04 12:35:56 -04:00
parent d7c309ff4f
commit 318a5f18e2
3 changed files with 9 additions and 0 deletions

View File

@@ -24325,3 +24325,5 @@
* Removed debugging statement from 'lib/rdmulticaster.cpp'. * Removed debugging statement from 'lib/rdmulticaster.cpp'.
2023-08-03 Fred Gleason <fredg@paravelsystems.com> 2023-08-03 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 4.0.2int0. * Incremented the package version to 4.0.2int0.
2023-08-04 Fred Gleason <fredg@paravelsystems.com>
* Added a destructor to the 'RDMulticaster' class.

View File

@@ -39,6 +39,12 @@ RDMulticaster::RDMulticaster(QObject *parent)
} }
RDMulticaster::~RDMulticaster()
{
delete multi_socket;
}
bool RDMulticaster::bind(uint16_t port) bool RDMulticaster::bind(uint16_t port)
{ {
return multi_socket->bind(QHostAddress("0.0.0.0"),port); return multi_socket->bind(QHostAddress("0.0.0.0"),port);

View File

@@ -30,6 +30,7 @@ class RDMulticaster : public QObject
Q_OBJECT Q_OBJECT
public: public:
RDMulticaster(QObject *parent=0); RDMulticaster(QObject *parent=0);
~RDMulticaster();
bool bind(uint16_t port); bool bind(uint16_t port);
void enableLoopback(bool state); void enableLoopback(bool state);
void subscribe(const QHostAddress &addr); void subscribe(const QHostAddress &addr);