llarp::service::ProtocolMessage
inner message
#include <protocol.hpp>
Public Functions
| Name | |
|---|---|
| ProtocolMessage(const ConvoTag & tag) | |
| ProtocolMessage() | |
| ~ProtocolMessage() | |
| std::vector< char > | EncodeAuthInfo() const encode metainfo for lmq endpoint auth |
| bool | DecodeKey(const llarp_buffer_t & key, llarp_buffer_t * val) |
| bool | BEncode(llarp_buffer_t * buf) const |
| void | PutBuffer(const llarp_buffer_t & payload) |
| bool | operator<(const ProtocolMessage & other) const |
| void | ProcessAsync(path::Path_ptr p, PathID_t from, std::shared_ptr< ProtocolMessage > self) |
Public Attributes
| Name | |
|---|---|
| ProtocolType | proto |
| llarp_time_t | queued |
| std::vector< byte_t > | payload |
| Introduction | introReply |
| ServiceInfo | sender |
| Endpoint * | handler |
| ConvoTag | tag |
| uint64_t | seqno |
| uint64_t | version |
Public Functions Documentation
function ProtocolMessage
ProtocolMessage(
const ConvoTag & tag
)
function ProtocolMessage
ProtocolMessage()
function ~ProtocolMessage
~ProtocolMessage()
function EncodeAuthInfo
std::vector< char > EncodeAuthInfo() const
encode metainfo for lmq endpoint auth
function DecodeKey
bool DecodeKey(
const llarp_buffer_t & key,
llarp_buffer_t * val
)
function BEncode
bool BEncode(
llarp_buffer_t * buf
) const
function PutBuffer
void PutBuffer(
const llarp_buffer_t & payload
)
function operator<
inline bool operator<(
const ProtocolMessage & other
) const
function ProcessAsync
static void ProcessAsync(
path::Path_ptr p,
PathID_t from,
std::shared_ptr< ProtocolMessage > self
)
Public Attributes Documentation
variable proto
ProtocolType proto = ProtocolType::TrafficV4;
variable queued
llarp_time_t queued = 0s;
variable payload
std::vector< byte_t > payload;
variable introReply
Introduction introReply;
variable sender
ServiceInfo sender;
variable handler
Endpoint * handler = nullptr;
variable tag
ConvoTag tag;
variable seqno
uint64_t seqno = 0;
variable version
uint64_t version = llarp::constants::proto_version;
Updated on 2026-01-10 at 22:49:45 +0000