ShortPing
ShortPing

Contains logic for the ShortPing node command

Functions
buildCommand
static ByteStream buildCommand(
NodeAddress nodeAddress
)

Builds the ShortPing command packet

Returns

A ByteStream containing the ShortPing command packet

Response
public
ResponsePattern
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
Response

Handles the response to the ShortPing node command

Functions
Response
explicit Response(
std::weak_ptr<ResponseCollectorcollector
)

Creates a ShortPing Response object

Parameters
collector
std::weak_ptr<ResponseCollector>

The ResponseCollector used to register and unregister the response

match
virtual bool match(
DataBuffer &data
) override

Checks if the bytes passed in match the response pattern from their current read position

Parameters
data

The DataBuffer containing the bytes in which to try to find the pattern

Returns

true if the response pattern was found, false otherwise