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) | |
| RatsPeer (const RatsPeer &o) | |
| RatsPeer & | operator= (const RatsPeer &o) |
| RatsPeer (RatsPeer &&)=default | |
| RatsPeer & | operator= (RatsPeer &&)=default |
| 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 |
| PeerIOContext | io_ |
RatsPeer struct - comprehensive information about a connected rats peer.
|
strong |
|
inline |
Definition at line 92 of file librats.h.
References connected_at, and handshake_start_time.
|
inline |
Definition at line 99 of file librats.h.
References connected_at, and handshake_start_time.
|
default |
|
inline |
Definition at line 155 of file librats.h.
References COMPLETED, and handshake_state.
|
inline |
Definition at line 156 of file librats.h.
References FAILED, and handshake_state.
|
inline |
Definition at line 150 of file librats.h.
References noise_handshake_completed, recv_cipher, and send_cipher.
Definition at line 123 of file librats.h.
References connected_at, encryption_enabled, handshake_start_time, handshake_state, ip, is_outgoing, noise_handshake_completed, normalized_address, peer_id, port, recv_cipher, remote_static_key, send_cipher, socket, and version.
| std::chrono::steady_clock::time_point librats::RatsPeer::connected_at |
Definition at line 66 of file librats.h.
Referenced by RatsPeer(), RatsPeer(), and operator=().
| bool librats::RatsPeer::encryption_enabled |
Definition at line 83 of file librats.h.
Referenced by operator=().
| std::chrono::steady_clock::time_point librats::RatsPeer::handshake_start_time |
Definition at line 80 of file librats.h.
Referenced by RatsPeer(), RatsPeer(), and operator=().
| HandshakeState librats::RatsPeer::handshake_state |
Definition at line 78 of file librats.h.
Referenced by is_handshake_completed(), is_handshake_failed(), and operator=().
| PeerIOContext librats::RatsPeer::io_ |
| std::string librats::RatsPeer::ip |
Definition at line 62 of file librats.h.
Referenced by operator=().
| bool librats::RatsPeer::is_outgoing |
Definition at line 67 of file librats.h.
Referenced by operator=().
| bool librats::RatsPeer::noise_handshake_completed |
Definition at line 84 of file librats.h.
Referenced by is_noise_encrypted(), and operator=().
| std::string librats::RatsPeer::normalized_address |
Definition at line 65 of file librats.h.
Referenced by operator=().
| std::string librats::RatsPeer::peer_id |
Definition at line 61 of file librats.h.
Referenced by operator=().
| uint16_t librats::RatsPeer::port |
Definition at line 63 of file librats.h.
Referenced by operator=().
| std::shared_ptr<rats::NoiseCipherState> librats::RatsPeer::recv_cipher |
Definition at line 86 of file librats.h.
Referenced by is_noise_encrypted(), and operator=().
| std::vector<uint8_t> librats::RatsPeer::remote_static_key |
Definition at line 87 of file librats.h.
Referenced by operator=().
| std::shared_ptr<rats::NoiseCipherState> librats::RatsPeer::send_cipher |
Definition at line 85 of file librats.h.
Referenced by is_noise_encrypted(), and operator=().
| socket_t librats::RatsPeer::socket |
Definition at line 64 of file librats.h.
Referenced by operator=().
| std::string librats::RatsPeer::version |
Definition at line 79 of file librats.h.
Referenced by operator=().