Go to the documentation of this file.
17 #ifndef USGOV_e71c29d5f8c07b8000435dfe6a5f1e49605b1b2041dad14a3ac898464ed5dd49
18 #define USGOV_e71c29d5f8c07b8000435dfe6a5f1e49605b1b2041dad14a3ac898464ed5dd49
29 #include <unordered_set>
32 namespace us {
namespace gov {
50 constexpr
static array<const char*,num_stages> stagestr={
"disconnected",
"connected",
"latency",
"service",
"disconnecting"};
52 constexpr
static uint64_t maxidle_ms{180000};
57 ko connect(uint32_t host, uint16_t port, uint16_t pport,
role_t,
bool block)
override;
58 void disconnect(uint16_t seq,
const string& reason)
override;
59 void dump_all(
const string& prefix, ostream& os)
const override;
63 void dump(
const string& prefix, ostream& os)
const;
@ stage_service
Definition: peer_t.h:46
stage_t
Definition: peer_t.h:29
Definition: client.cs:143
role_t
Definition: peer_t.h:52
void dump(const string &prefix, ostream &os) const
auth::peer_t b
Definition: peer_t.h:39
ko connect(uint32_t host, uint16_t port, uint16_t pport, role_t, bool block) override
static const char * finished_reason_1
Definition: peer_t.h:53
Definition: datagram.h:44
id::daemon daemon
Definition: daemon.h:25
bool authorize(const pub_t &p, uint16_t pin) const override
@ stage_disconnecting
Definition: peer_t.h:47
@ stage_connected
Definition: peer_t.h:44
@ stage_exceed_latency
Definition: peer_t.h:45
const ko_t * ko
Definition: ko.h:27
bool check_auth_not_granted() const
pair< security_level_t, string > security_level() const override
stage_t stage
Definition: peer_t.h:66
constexpr static chrono::seconds stall
Definition: peer_t.h:31
void dump_all(const string &prefix, ostream &os) const override
void disconnect(uint16_t seq, const string &reason) override