class Blaster : StackService
Stack service for supporting blasting random packets over attached GG stack.
To start blasting call start method, blasting will only be stopped after calling stop
lwipBased
- true is configured with a Network Interface, false otherwise (default is true)
packetSize
- Size of each packet to send.
maxPacketCount
- Number of packets to send, or 0 for unlimited.
sendInterval
- Time interval between packets, in milliseconds, or 0 for max speed.
Blaster(lwipBased: Boolean = true, packetSize: Int = BLASTER_DEFAULT_PACKET_SIZE, maxPacketCount: Int = 0, sendInterval: Long = 0L)
Stack service for supporting blasting random packets over attached GG stack. |
fun attach(dataSinkDataSource: DataSinkDataSource): Unit
Attach the source and sink |
|
fun close(): Unit |
|
fun detach(): Unit |
|
fun getStats(): Maybe<PerfDataStats>
Get stats for ongoing blast operation |
|
fun start(): Unit
Start Blasting data packets |
|
fun stop(): Unit
Stop Blasting data packets |
open fun setFilterGroup(group: CoapGroupRequestFilterMode, key: NodeKey<String>): Unit
Update the current filter group used by the CoAP request filter. |