Back to Site
Loading...
Searching...
No Matches
peer_info.h
Go to the documentation of this file.
1#pragma once
2
12#include "core/types.h" // ConnRole
13#include "core/address.h"
14#include "peer/peer_id.h"
15
16#include <vector>
17
18namespace librats {
19
20struct PeerInfo {
22 std::vector<Address> addresses;
23 ConnRole direction = ConnRole::Outbound;
24 std::string agent_version;
25};
26
27} // namespace librats
A dialable transport address (ip + port).
Definition node.h:65
Self-certifying peer identity.
std::vector< Address > addresses
known dialable addresses
Definition peer_info.h:22
std::string agent_version
optional remote agent string
Definition peer_info.h:24
ConnRole direction
Definition peer_info.h:23