EHS
Loading...
Searching...
No Matches
ehs::NetChannel Class Reference

#include <NetChannel.h>

Inheritance diagram for ehs::NetChannel:
ehs::NetClientCh ehs::NetServerCh

Public Member Functions

virtual ~NetChannel ()
 
 NetChannel ()
 
 NetChannel (Str_8 name, const Version &version)
 
 NetChannel (NetChannel &&channel) noexcept
 
 NetChannel (const NetChannel &channel)
 
NetChanneloperator= (NetChannel &&channel) noexcept
 
NetChanneloperator= (const NetChannel &channel)
 
EHCGetOwner () const
 
UInt_64 GetId () const
 
Str_8 GetName () const
 
Version GetVersion () const
 
void SetMaxTimeout (float seconds)
 
float GetMaxTimeout () const
 
void SetResendRate (float seconds)
 
float GetResendRate () const
 
void EnableDropPackets (bool enable)
 
bool IsDropPacketsEnabled () const
 
bool AddSystem (NetSys *sys)
 
bool IsValid () const
 

Protected Member Functions

bool HasSystem (UInt_64 sysId) const
 
bool HasSystem (const Str_8 &sysName) const
 
NetSysGetSystem (UInt_64 sysId) const
 
NetSysGetSystem (const Str_8 &sysName) const
 

Static Protected Attributes

static const UInt_64 internalSys = Str_8::Hash_64("Internal")
 
static const UInt_64 connectOp = Str_8::Hash_64("Connect")
 
static const UInt_64 connectedOp = Str_8::Hash_64("Connected")
 
static const UInt_64 rejectedOp = Str_8::Hash_64("Rejected")
 
static const UInt_64 disconnectOp = Str_8::Hash_64("Disconnect")
 
static const UInt_64 disconnectedOp = Str_8::Hash_64("Disconnected")
 
static const UInt_64 statusUpdateOp = Str_8::Hash_64("StatusUpdate")
 
static const UInt_64 pingOp = Str_8::Hash_64("Ping")
 
static const UInt_64 pongOp = Str_8::Hash_64("Pong")
 
static const UInt_64 latencyOp = Str_8::Hash_64("Latency")
 
static const UInt_64 receivedOp = Str_8::Hash_64("Received")
 

Friends

class EHC
 

Constructor & Destructor Documentation

◆ ~NetChannel()

ehs::NetChannel::~NetChannel ( )
virtual

◆ NetChannel() [1/4]

ehs::NetChannel::NetChannel ( )

◆ NetChannel() [2/4]

ehs::NetChannel::NetChannel ( Str_8 name,
const Version & version )

◆ NetChannel() [3/4]

ehs::NetChannel::NetChannel ( NetChannel && channel)
noexcept

◆ NetChannel() [4/4]

ehs::NetChannel::NetChannel ( const NetChannel & channel)

Member Function Documentation

◆ AddSystem()

bool ehs::NetChannel::AddSystem ( NetSys * sys)

◆ EnableDropPackets()

void ehs::NetChannel::EnableDropPackets ( bool enable)

◆ GetId()

UInt_64 ehs::NetChannel::GetId ( ) const

◆ GetMaxTimeout()

float ehs::NetChannel::GetMaxTimeout ( ) const

◆ GetName()

Str_8 ehs::NetChannel::GetName ( ) const

◆ GetOwner()

EHC * ehs::NetChannel::GetOwner ( ) const

◆ GetResendRate()

float ehs::NetChannel::GetResendRate ( ) const

◆ GetSystem() [1/2]

NetSys * ehs::NetChannel::GetSystem ( const Str_8 & sysName) const
protected

◆ GetSystem() [2/2]

NetSys * ehs::NetChannel::GetSystem ( UInt_64 sysId) const
protected

◆ GetVersion()

Version ehs::NetChannel::GetVersion ( ) const

◆ HasSystem() [1/2]

bool ehs::NetChannel::HasSystem ( const Str_8 & sysName) const
protected

◆ HasSystem() [2/2]

bool ehs::NetChannel::HasSystem ( UInt_64 sysId) const
protected

◆ IsDropPacketsEnabled()

bool ehs::NetChannel::IsDropPacketsEnabled ( ) const

◆ IsValid()

bool ehs::NetChannel::IsValid ( ) const

◆ operator=() [1/2]

NetChannel & ehs::NetChannel::operator= ( const NetChannel & channel)

◆ operator=() [2/2]

NetChannel & ehs::NetChannel::operator= ( NetChannel && channel)
noexcept

◆ SetMaxTimeout()

void ehs::NetChannel::SetMaxTimeout ( float seconds)

◆ SetResendRate()

void ehs::NetChannel::SetResendRate ( float seconds)

Friends And Related Symbol Documentation

◆ EHC

friend class EHC
friend

Member Data Documentation

◆ connectedOp

const UInt_64 ehs::NetChannel::connectedOp = Str_8::Hash_64("Connected")
staticprotected

◆ connectOp

const UInt_64 ehs::NetChannel::connectOp = Str_8::Hash_64("Connect")
staticprotected

◆ disconnectedOp

const UInt_64 ehs::NetChannel::disconnectedOp = Str_8::Hash_64("Disconnected")
staticprotected

◆ disconnectOp

const UInt_64 ehs::NetChannel::disconnectOp = Str_8::Hash_64("Disconnect")
staticprotected

◆ internalSys

const UInt_64 ehs::NetChannel::internalSys = Str_8::Hash_64("Internal")
staticprotected

◆ latencyOp

const UInt_64 ehs::NetChannel::latencyOp = Str_8::Hash_64("Latency")
staticprotected

◆ pingOp

const UInt_64 ehs::NetChannel::pingOp = Str_8::Hash_64("Ping")
staticprotected

◆ pongOp

const UInt_64 ehs::NetChannel::pongOp = Str_8::Hash_64("Pong")
staticprotected

◆ receivedOp

const UInt_64 ehs::NetChannel::receivedOp = Str_8::Hash_64("Received")
staticprotected

◆ rejectedOp

const UInt_64 ehs::NetChannel::rejectedOp = Str_8::Hash_64("Rejected")
staticprotected

◆ statusUpdateOp

const UInt_64 ehs::NetChannel::statusUpdateOp = Str_8::Hash_64("StatusUpdate")
staticprotected

The documentation for this class was generated from the following files: