R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
IPeer.hpp File Reference
#include <cstdint>
#include <memory>
#include "IAddress.hpp"
#include "IPacket.hpp"
Include dependency graph for IPeer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IPeer
 Interface representing a remote peer in the network. More...
 

Enumerations

enum class  PeerState {
  DISCONNECTED , CONNECTING , ACKNOWLEDGING_CONNECT , CONNECTION_PENDING ,
  CONNECTION_SUCCEEDED , CONNECTED , DISCONNECT_LATER , DISCONNECTING ,
  ACKNOWLEDGING_DISCONNECT , ZOMBIE
}
 Represents the connection state of a peer. More...
 

Enumeration Type Documentation

◆ PeerState

enum class PeerState
strong

Represents the connection state of a peer.

Enumerator
DISCONNECTED 

Peer is disconnected.

CONNECTING 

Connection to peer is being established.

ACKNOWLEDGING_CONNECT 

Connection acknowledgment is being sent.

CONNECTION_PENDING 

Connection is pending.

CONNECTION_SUCCEEDED 

Connection has succeeded.

CONNECTED 

Peer is connected.

DISCONNECT_LATER 

Peer is scheduled to disconnect.

DISCONNECTING 

Disconnection is in progress.

ACKNOWLEDGING_DISCONNECT 

Disconnect acknowledgment is being sent.

ZOMBIE 

Peer is in a zombie state.

Definition at line 19 of file IPeer.hpp.