- Added a new message type `Nop`

Client

- Added a `nopRequest()` to generate a `NopRequest` for testing
This commit is contained in:
Tristan B. Velloza Kildaire 2023-05-04 15:46:26 +02:00
parent 27a0404b84
commit b7f90122dd
2 changed files with 17 additions and 0 deletions

View File

@ -78,6 +78,12 @@ public class DanteClient
manager.start();
version(dbg) { writeln("Dante staretd tristanable manager..."); }
}
public void nopRequest()
{
import dante.types.nop;
engine.makeRequest(new NopRequest());
}
}
unittest

11
source/dante/types/nop.d Normal file
View File

@ -0,0 +1,11 @@
module dante.types.nop;
import tasky : Request;
public class NopRequest : Request
{
this()
{
super(cast(byte[])"ABBA");
}
}