43#include <StormByte/visibility.h>
79 default:
return "Error";
constexpr const char * StatusToString(const Status &status) noexcept
Status as text.
Definition status.hxx:69
constexpr bool IsConnected(const Status &status) noexcept
Whether the connection is usable for I/O (Connected or Negotiating).
Definition status.hxx:88
Status
Lifecycle of a connection or listener.
Definition status.hxx:53
@ Disconnecting
Shutdown in progress.
Definition status.hxx:57
@ Connected
Connection established.
Definition status.hxx:54
@ Error
Error state.
Definition status.hxx:61
@ Rejected
Peer or local rejection.
Definition status.hxx:59
@ PeerClosed
Peer closed the connection.
Definition status.hxx:60
@ Connecting
Connect or listen in progress.
Definition status.hxx:56
@ Disconnected
Closed / idle.
Definition status.hxx:55
@ Negotiating
Application-level handshake.
Definition status.hxx:58
#define STORMBYTE_NETWORK_PUBLIC
Definition visibility.h:51