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

Go to the source code of this file.

Classes

struct  HostNetworkEvent
 Represents a network event (connection, disconnection, or received data). More...
 
class  IHost
 Interface representing a network host (server or client endpoint). More...
 

Enumerations

enum class  NetworkEventType { NONE , CONNECT , DISCONNECT , RECEIVE }
 Type of network event. More...
 

Enumeration Type Documentation

◆ NetworkEventType

enum class NetworkEventType
strong

Type of network event.

Enumerator
NONE 

No event occurred.

CONNECT 

A peer has connected.

DISCONNECT 

A peer has disconnected.

RECEIVE 

A packet was received.

Definition at line 21 of file IHost.hpp.