Implement CLMessReadyForSending in CTestbench.

The class had code to generate connectionless messages, but it didn't
implement the signal to send them.
This commit is contained in:
Adam Sampson 2020-05-27 15:38:36 +01:00
parent cffd4e9a61
commit 1462ad50db

View file

@ -60,9 +60,11 @@ public:
iPortIncrement++;
}
// connect protocol signal
// connect protocol signals
QObject::connect ( &Protocol, SIGNAL ( MessReadyForSending ( CVector<uint8_t> ) ),
this, SLOT ( OnSendProtMessage ( CVector<uint8_t> ) ) );
QObject::connect ( &Protocol, SIGNAL ( CLMessReadyForSending ( CHostAddress, CVector<uint8_t> ) ),
this, SLOT ( OnSendCLMessage ( CHostAddress, CVector<uint8_t> ) ) );
// 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<uint8_t> vecMessage )
{
// silence unused warning
(void) InetAddr;
OnSendProtMessage ( vecMessage );
}
};