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

#include <peer_info.h>

Collaboration diagram for librats::PeerInfo:
[legend]

Public Attributes

PeerId id
std::vector< Address > addresses
 known dialable addresses
std::optional< Address > endpoint
 Where this connection's packets come from: over UDP, the endpoint the peer's NAT maps its shared socket to (what a third node has to aim at); over TCP an ephemeral port.
ConnRole direction = ConnRole::Outbound
TransportKind transport = TransportKind::Tcp
 wire this connection runs on
uint8_t supported_transports = PeerTransportNone
 what the peer advertised
std::string agent_version
 optional remote agent string

Detailed Description

Definition at line 29 of file peer_info.h.

Member Data Documentation

◆ addresses

std::vector<Address> librats::PeerInfo::addresses

known dialable addresses

Definition at line 31 of file peer_info.h.

◆ agent_version

std::string librats::PeerInfo::agent_version

optional remote agent string

Definition at line 39 of file peer_info.h.

◆ direction

ConnRole librats::PeerInfo::direction = ConnRole::Outbound

Definition at line 36 of file peer_info.h.

◆ endpoint

std::optional<Address> librats::PeerInfo::endpoint

Where this connection's packets come from: over UDP, the endpoint the peer's NAT maps its shared socket to (what a third node has to aim at); over TCP an ephemeral port.

Nullopt for a relayed connection.

Definition at line 35 of file peer_info.h.

◆ id

PeerId librats::PeerInfo::id

Definition at line 30 of file peer_info.h.

◆ supported_transports

uint8_t librats::PeerInfo::supported_transports = PeerTransportNone

what the peer advertised

Definition at line 38 of file peer_info.h.

◆ transport

TransportKind librats::PeerInfo::transport = TransportKind::Tcp

wire this connection runs on

Definition at line 37 of file peer_info.h.


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