mirror of https://github.com/renaissanceorg/dante
Nop
- Added a new message type `Nop` Client - Added a `nopRequest()` to generate a `NopRequest` for testing
This commit is contained in:
parent
27a0404b84
commit
b7f90122dd
|
@ -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
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
module dante.types.nop;
|
||||
|
||||
import tasky : Request;
|
||||
|
||||
public class NopRequest : Request
|
||||
{
|
||||
this()
|
||||
{
|
||||
super(cast(byte[])"ABBA");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue