From 1462ad50db430a1042516111b758db07a24c07f4 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Wed, 27 May 2020 15:38:36 +0100 Subject: [PATCH] Implement CLMessReadyForSending in CTestbench. The class had code to generate connectionless messages, but it didn't implement the signal to send them. --- src/testbench.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/testbench.h b/src/testbench.h index 0fb35fbd..fa5d398b 100755 --- a/src/testbench.h +++ b/src/testbench.h @@ -60,9 +60,11 @@ public: iPortIncrement++; } - // connect protocol signal + // connect protocol signals QObject::connect ( &Protocol, SIGNAL ( MessReadyForSending ( CVector ) ), this, SLOT ( OnSendProtMessage ( CVector ) ) ); + QObject::connect ( &Protocol, SIGNAL ( CLMessReadyForSending ( CHostAddress, CVector ) ), + this, SLOT ( OnSendCLMessage ( CHostAddress, CVector ) ) ); // connect and start the timer (testbench heartbeat) QObject::connect ( &Timer, SIGNAL ( timeout() ), @@ -295,4 +297,12 @@ public slots: // send the next message Protocol.Reset(); } + + void OnSendCLMessage ( CHostAddress InetAddr, CVector vecMessage ) + { + // silence unused warning + (void) InetAddr; + + OnSendProtMessage ( vecMessage ); + } };