added disconnect message to testbench
This commit is contained in:
parent
44be809457
commit
559945c424
1 changed files with 6 additions and 1 deletions
|
@ -54,6 +54,7 @@ public:
|
||||||
// connect and start the timer (testbench heartbeat)
|
// connect and start the timer (testbench heartbeat)
|
||||||
QObject::connect ( &Timer, SIGNAL ( timeout() ),
|
QObject::connect ( &Timer, SIGNAL ( timeout() ),
|
||||||
this, SLOT ( OnTimer() ) );
|
this, SLOT ( OnTimer() ) );
|
||||||
|
|
||||||
Timer.start ( 1 ); // 1 ms
|
Timer.start ( 1 ); // 1 ms
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +75,7 @@ public slots:
|
||||||
void OnTimer()
|
void OnTimer()
|
||||||
{
|
{
|
||||||
// generate random protocol message
|
// generate random protocol message
|
||||||
switch ( GenRandomIntInRange ( 0, 10 ) )
|
switch ( GenRandomIntInRange ( 0, 11 ) )
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
Protocol.CreateJitBufMes ( GenRandomIntInRange ( 0, 10 ) );
|
Protocol.CreateJitBufMes ( GenRandomIntInRange ( 0, 10 ) );
|
||||||
|
@ -121,6 +122,10 @@ public slots:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 10:
|
case 10:
|
||||||
|
Protocol.CreateAndImmSendDisconnectionMes();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 11:
|
||||||
// arbitrary "audio" packet (with random sizes)
|
// arbitrary "audio" packet (with random sizes)
|
||||||
CVector<uint8_t> vecMessage ( GenRandomIntInRange ( 1, 1000 ) );
|
CVector<uint8_t> vecMessage ( GenRandomIntInRange ( 1, 1000 ) );
|
||||||
OnSendProtMessage ( vecMessage );
|
OnSendProtMessage ( vecMessage );
|
||||||
|
|
Loading…
Reference in a new issue