Back to Site
Loading...
Searching...
No Matches
librats::KrpcMessage Struct Reference

KRPC Message structure. More...

#include <krpc.h>

Collaboration diagram for librats::KrpcMessage:
[legend]

Public Member Functions

 KrpcMessage ()
 

Public Attributes

KrpcMessageType type
 
std::string transaction_id
 
KrpcQueryType query_type
 
NodeId sender_id
 
NodeId target_id
 
InfoHash info_hash
 
uint16_t port
 
std::string token
 
NodeId response_id
 
std::vector< KrpcNodenodes
 
std::vector< Peerpeers
 
KrpcErrorCode error_code
 
std::string error_message
 

Detailed Description

KRPC Message structure.

Definition at line 61 of file krpc.h.

Constructor & Destructor Documentation

◆ KrpcMessage()

librats::KrpcMessage::KrpcMessage ( )
inline

Definition at line 82 of file krpc.h.

Member Data Documentation

◆ error_code

KrpcErrorCode librats::KrpcMessage::error_code

Definition at line 79 of file krpc.h.

◆ error_message

std::string librats::KrpcMessage::error_message

Definition at line 80 of file krpc.h.

◆ info_hash

InfoHash librats::KrpcMessage::info_hash

Definition at line 69 of file krpc.h.

◆ nodes

std::vector<KrpcNode> librats::KrpcMessage::nodes

Definition at line 75 of file krpc.h.

◆ peers

std::vector<Peer> librats::KrpcMessage::peers

Definition at line 76 of file krpc.h.

◆ port

uint16_t librats::KrpcMessage::port

Definition at line 70 of file krpc.h.

◆ query_type

KrpcQueryType librats::KrpcMessage::query_type

Definition at line 66 of file krpc.h.

◆ response_id

NodeId librats::KrpcMessage::response_id

Definition at line 74 of file krpc.h.

◆ sender_id

NodeId librats::KrpcMessage::sender_id

Definition at line 67 of file krpc.h.

◆ target_id

NodeId librats::KrpcMessage::target_id

Definition at line 68 of file krpc.h.

◆ token

std::string librats::KrpcMessage::token

Definition at line 71 of file krpc.h.

◆ transaction_id

std::string librats::KrpcMessage::transaction_id

Definition at line 63 of file krpc.h.

◆ type

KrpcMessageType librats::KrpcMessage::type

Definition at line 62 of file krpc.h.


The documentation for this struct was generated from the following file: