Skip to content

sgns::keepalive

#include <common.hpp>

Inherits from sgns::message

Public Functions

Name
keepalive()
keepalive(bool & error_a, sgns::stream & stream_a, sgns::message_header const & header_a)
virtual void visit(sgns::message_visitor & visitor_a) const override
virtual void serialize(sgns::stream & stream_a, bool use_epoch_2_min_version_a) const override
bool deserialize(sgns::stream & stream_a)
bool operator==(sgns::keepalive const & other_a) const

Public Attributes

Name
std::array< sgns::endpoint, 8 > peers
size_t constexpr size

Additional inherited members

Public Functions inherited from sgns::message

Name
message(sgns::message_type type_a)
message(sgns::message_header const & header_a)
virtual ~message() =default
std::shared_ptr< std::vector< uint8_t > > to_bytes(bool use_epoch_2_min_version_a) const
sgns::shared_const_buffer to_shared_const_buffer(bool use_epoch_2_min_version_a) const

Public Attributes inherited from sgns::message

Name
sgns::message_header header

Public Functions Documentation

function keepalive

keepalive()

function keepalive

keepalive(
    bool & error_a,
    sgns::stream & stream_a,
    sgns::message_header const & header_a
)

function visit

virtual void visit(
    sgns::message_visitor & visitor_a
) const override

Reimplements: sgns::message::visit

function serialize

virtual void serialize(
    sgns::stream & stream_a,
    bool use_epoch_2_min_version_a
) const override

Reimplements: sgns::message::serialize

function deserialize

bool deserialize(
    sgns::stream & stream_a
)

function operator==

bool operator==(
    sgns::keepalive const & other_a
) const

Public Attributes Documentation

variable peers

std::array< sgns::endpoint, 8 > peers;

variable size

static size_t constexpr size = 8 * (16 + 2);

Updated on 2026-03-04 at 13:10:43 -0800