RatsPeer struct - comprehensive information about a connected rats peer. More...
#include <librats.h>
Public Types | |
| enum class | HandshakeState { PENDING , SENT , NOISE_PENDING , COMPLETED , FAILED } |
Public Member Functions | |
| RatsPeer () | |
| RatsPeer (const std::string &id, const std::string &peer_ip, uint16_t peer_port, socket_t sock, const std::string &norm_addr, bool outgoing) | |
| bool | is_noise_encrypted () const |
| bool | is_handshake_completed () const |
| bool | is_handshake_failed () const |
Public Attributes | |
| std::string | peer_id |
| std::string | ip |
| uint16_t | port |
| socket_t | socket |
| std::string | normalized_address |
| std::chrono::steady_clock::time_point | connected_at |
| bool | is_outgoing |
| HandshakeState | handshake_state |
| std::string | version |
| std::chrono::steady_clock::time_point | handshake_start_time |
| bool | encryption_enabled |
| bool | noise_handshake_completed |
| std::shared_ptr< rats::NoiseCipherState > | send_cipher |
| std::shared_ptr< rats::NoiseCipherState > | recv_cipher |
| std::vector< uint8_t > | remote_static_key |
RatsPeer struct - comprehensive information about a connected rats peer.
|
strong |
|
inline |
Definition at line 68 of file librats.h.
References connected_at, and handshake_start_time.
|
inline |
Definition at line 75 of file librats.h.
References connected_at, and handshake_start_time.
|
inline |
Definition at line 92 of file librats.h.
References COMPLETED, and handshake_state.
|
inline |
Definition at line 93 of file librats.h.
References FAILED, and handshake_state.
|
inline |
Definition at line 87 of file librats.h.
References noise_handshake_completed, recv_cipher, and send_cipher.
| std::chrono::steady_clock::time_point librats::RatsPeer::connected_at |
Definition at line 45 of file librats.h.
Referenced by RatsPeer(), and RatsPeer().
| std::chrono::steady_clock::time_point librats::RatsPeer::handshake_start_time |
Definition at line 59 of file librats.h.
Referenced by RatsPeer(), and RatsPeer().
| HandshakeState librats::RatsPeer::handshake_state |
Definition at line 57 of file librats.h.
Referenced by is_handshake_completed(), and is_handshake_failed().
| bool librats::RatsPeer::noise_handshake_completed |
Definition at line 63 of file librats.h.
Referenced by is_noise_encrypted().
| std::shared_ptr<rats::NoiseCipherState> librats::RatsPeer::recv_cipher |
Definition at line 65 of file librats.h.
Referenced by is_noise_encrypted().
| std::shared_ptr<rats::NoiseCipherState> librats::RatsPeer::send_cipher |
Definition at line 64 of file librats.h.
Referenced by is_noise_encrypted().