25 return "Disconnected";
ConnectionState
Lifecycle of a Connection.
Definition connection_state.hpp:11
@ HelloSent
HelloRequest sent; awaiting HelloResponse.
@ Connected
Handshake complete; messages flow freely.
@ Closing
Graceful DisconnectRequest in flight.
@ Failed
Terminated by an error.
@ Connecting
TCP connect (and, for Noise, handshake) in progress.
@ Disconnected
Idle, never connected or fully torn down.
const char * to_string(const ConnectionState state)
Human-readable name of a connection state.
Definition connection_state.hpp:22