Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
NetProtocol.h File Reference
#include "network/NetMessage.h"
#include "ps/Mod.h"
#include "ps/Pyrogenesis.h"
#include <optional>
#include <string>
#include <type_traits>
#include <vector>
Include dependency graph for NetProtocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HandshakeError
 

Functions

template<typename Message >
Message CreateHandshake ()
 
std::optional< HandshakeError > CheckHandshake (const CSrvHandshakeMessage &serverMessage, const CCliHandshakeMessage &clientMessage)
 

Variables

constexpr std::uint32_t NETWORK_WARNING_TIMEOUT {2000}
 Report the peer if we didn't receive a packet after this time (milliseconds). More...
 

Function Documentation

◆ CheckHandshake()

std::optional< HandshakeError > CheckHandshake ( const CSrvHandshakeMessage &  serverMessage,
const CCliHandshakeMessage &  clientMessage 
)

◆ CreateHandshake()

template<typename Message >
Message CreateHandshake ( )

Variable Documentation

◆ NETWORK_WARNING_TIMEOUT

constexpr std::uint32_t NETWORK_WARNING_TIMEOUT {2000}
inlineconstexpr

Report the peer if we didn't receive a packet after this time (milliseconds).