Stormancer::ConnectionState Struct Reference

Public Types

enum  State { Disconnected = 0, Connecting = 1, Connected = 2, Disconnecting = 3 }
 State of a network connection. More...
 

Public Member Functions

 ConnectionState (State state2)
 
 ConnectionState (State state2, std::string reason2)
 
ConnectionStateoperator= (State state2)
 
bool operator== (const ConnectionState &other) const
 
bool operator!= (const ConnectionState &other) const
 
bool operator== (State state2) const
 
bool operator!= (State state2) const
 
 operator int ()
 

Public Attributes

State state = ConnectionState::Disconnected
 
std::string reason
 

Member Enumeration Documentation

◆ State

State of a network connection.

Enumerator
Disconnected 

Disconnected.

Connecting 

Connecting.

Connected 

Connected.

Disconnecting 

Disconnecting.


The documentation for this struct was generated from the following file: