Equity
Bitcoin Protocol Library
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Network::PingMessage Class Reference

A ping message. More...

#include <PingMessage.h>

Inheritance diagram for Network::PingMessage:
Network::Message P2p::Serializable

Public Member Functions

 PingMessage (uint64_t nonce)
 
 PingMessage (uint8_t const *&in, size_t &size)
 
Overrides Serializable
virtual void serialize (std::vector< uint8_t > &out) const override
 
virtual json toJson () const override
 
- Public Member Functions inherited from Network::Message
 Message (char const *type)
 
std::string type () const
 Returns the type.
 

Public Attributes

uint64_t nonce_
 Nonce.
 

Static Public Attributes

static char const TYPE [] = "ping"
 Message type.
 

Detailed Description

A ping message.

Sent to confirm that the connection to a node is still valid.

See also
PongMessage

Constructor & Destructor Documentation

PingMessage::PingMessage ( uint64_t  nonce)
Parameters
noncea nonce
PingMessage::PingMessage ( uint8_t const *&  in,
size_t &  size 
)
Parameters
[in,out]inpointer to the next byte to deserialize
[in,out]sizenumber of bytes remaining in the serialized stream

The documentation for this class was generated from the following files: