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:
parent
cffd4e9a61
commit
1462ad50db
1 changed files with 11 additions and 1 deletions
|
@ -60,9 +60,11 @@ public:
|
||||||
iPortIncrement++;
|
iPortIncrement++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// connect protocol signal
|
// connect protocol signals
|
||||||
QObject::connect ( &Protocol, SIGNAL ( MessReadyForSending ( CVector<uint8_t> ) ),
|
QObject::connect ( &Protocol, SIGNAL ( MessReadyForSending ( CVector<uint8_t> ) ),
|
||||||
this, SLOT ( OnSendProtMessage ( 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)
|
// connect and start the timer (testbench heartbeat)
|
||||||
QObject::connect ( &Timer, SIGNAL ( timeout() ),
|
QObject::connect ( &Timer, SIGNAL ( timeout() ),
|
||||||
|
@ -295,4 +297,12 @@ public slots:
|
||||||
// send the next message
|
// send the next message
|
||||||
Protocol.Reset();
|
Protocol.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OnSendCLMessage ( CHostAddress InetAddr, CVector<uint8_t> vecMessage )
|
||||||
|
{
|
||||||
|
// silence unused warning
|
||||||
|
(void) InetAddr;
|
||||||
|
|
||||||
|
OnSendProtMessage ( vecMessage );
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue