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

#include <NetServerCh.h>

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

Public Member Functions

 ~NetServerCh () override
 
 NetServerCh ()
 
 NetServerCh (Str_8 name, const Version &version, UInt_64 maxEndpoints)
 
 NetServerCh (NetServerCh &&server) noexcept
 
 NetServerCh (const NetServerCh &server)
 
NetServerChoperator= (NetServerCh &&server) noexcept
 
NetServerChoperator= (const NetServerCh &server)
 
virtual bool OnEndpointConnect (NetEnd *endpoint, Serializer< UInt_64 > payload)
 
virtual Serializer< UInt_64 > OnEndpointAccepted (NetEnd *endpoint)
 
virtual void OnEndpointDisconnect (NetEnd *endpoint, Serializer< UInt_64 > payload)
 
virtual void OnEndpointTimeout (NetEnd *endpoint)
 
virtual void OnEndpointActive (NetEnd *endpoint)
 
virtual Serializer< UInt_64 > OnShutdown ()
 
void Broadcast (NetStatus endStatus, bool deltaLocked, UInt_64 encHashId, bool ensure, UInt_64 sysHashId, UInt_64 opHashId, const Serializer< UInt_64 > &payload)
 
void Broadcast (NetStatus endStatus, bool deltaLocked, const Str_8 &encId, bool ensure, const Str_8 &sysId, const Str_8 &opId, const Serializer< UInt_64 > &payload)
 
bool HasEndpoint (NetStatus endStatus, const Char_8 token[64]) const
 
bool HasEndpoint (NetStatus endStatus, UInt_64 hashId) const
 
bool HasEndpoint (NetStatus endStatus, const Str_8 &id) const
 
bool HasEndpoint (const Char_8 token[64]) const
 
bool HasEndpoint (UInt_64 hashId) const
 
bool HasEndpoint (const Str_8 &id) const
 
bool HasEndpoint (const Endpoint &endpoint) const
 
NetEndGetEndpoint (NetStatus endStatus, const Char_8 token[64]) const
 
NetEndGetEndpoint (NetStatus endStatus, UInt_64 hashId) const
 
NetEndGetEndpoint (NetStatus endStatus, const Str_8 &id) const
 
NetEndGetEndpoint (const Char_8 token[64]) const
 
NetEndGetEndpoint (UInt_64 hashId) const
 
NetEndGetEndpoint (const Str_8 &id) const
 
NetEndGetEndpoint (const Endpoint &endpoint) const
 
Array< NetEnd * > GetEndpoints (NetStatus endStatus)
 
UInt_64 GetEndpointsCount (NetStatus endStatus)
 
UInt_64 GetMaxEndpoints () const
 
- Public Member Functions inherited from ehs::NetChannel
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
 

Friends

class EHC
 

Additional Inherited Members

- Protected Member Functions inherited from ehs::NetChannel
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 inherited from ehs::NetChannel
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")
 

Constructor & Destructor Documentation

◆ ~NetServerCh()

ehs::NetServerCh::~NetServerCh ( )
override

◆ NetServerCh() [1/4]

ehs::NetServerCh::NetServerCh ( )

◆ NetServerCh() [2/4]

ehs::NetServerCh::NetServerCh ( Str_8 name,
const Version & version,
UInt_64 maxEndpoints )

◆ NetServerCh() [3/4]

ehs::NetServerCh::NetServerCh ( NetServerCh && server)
noexcept

◆ NetServerCh() [4/4]

ehs::NetServerCh::NetServerCh ( const NetServerCh & server)

Member Function Documentation

◆ Broadcast() [1/2]

void ehs::NetServerCh::Broadcast ( NetStatus endStatus,
bool deltaLocked,
const Str_8 & encId,
bool ensure,
const Str_8 & sysId,
const Str_8 & opId,
const Serializer< UInt_64 > & payload )

◆ Broadcast() [2/2]

void ehs::NetServerCh::Broadcast ( NetStatus endStatus,
bool deltaLocked,
UInt_64 encHashId,
bool ensure,
UInt_64 sysHashId,
UInt_64 opHashId,
const Serializer< UInt_64 > & payload )

◆ GetEndpoint() [1/7]

NetEnd * ehs::NetServerCh::GetEndpoint ( const Char_8 token[64]) const

◆ GetEndpoint() [2/7]

NetEnd * ehs::NetServerCh::GetEndpoint ( const Endpoint & endpoint) const

◆ GetEndpoint() [3/7]

NetEnd * ehs::NetServerCh::GetEndpoint ( const Str_8 & id) const

◆ GetEndpoint() [4/7]

NetEnd * ehs::NetServerCh::GetEndpoint ( NetStatus endStatus,
const Char_8 token[64] ) const

◆ GetEndpoint() [5/7]

NetEnd * ehs::NetServerCh::GetEndpoint ( NetStatus endStatus,
const Str_8 & id ) const

◆ GetEndpoint() [6/7]

NetEnd * ehs::NetServerCh::GetEndpoint ( NetStatus endStatus,
UInt_64 hashId ) const

◆ GetEndpoint() [7/7]

NetEnd * ehs::NetServerCh::GetEndpoint ( UInt_64 hashId) const

◆ GetEndpoints()

Array< NetEnd * > ehs::NetServerCh::GetEndpoints ( NetStatus endStatus)

◆ GetEndpointsCount()

UInt_64 ehs::NetServerCh::GetEndpointsCount ( NetStatus endStatus)

◆ GetMaxEndpoints()

UInt_64 ehs::NetServerCh::GetMaxEndpoints ( ) const

◆ HasEndpoint() [1/7]

bool ehs::NetServerCh::HasEndpoint ( const Char_8 token[64]) const

◆ HasEndpoint() [2/7]

bool ehs::NetServerCh::HasEndpoint ( const Endpoint & endpoint) const

◆ HasEndpoint() [3/7]

bool ehs::NetServerCh::HasEndpoint ( const Str_8 & id) const

◆ HasEndpoint() [4/7]

bool ehs::NetServerCh::HasEndpoint ( NetStatus endStatus,
const Char_8 token[64] ) const

◆ HasEndpoint() [5/7]

bool ehs::NetServerCh::HasEndpoint ( NetStatus endStatus,
const Str_8 & id ) const

◆ HasEndpoint() [6/7]

bool ehs::NetServerCh::HasEndpoint ( NetStatus endStatus,
UInt_64 hashId ) const

◆ HasEndpoint() [7/7]

bool ehs::NetServerCh::HasEndpoint ( UInt_64 hashId) const

◆ OnEndpointAccepted()

Serializer< UInt_64 > ehs::NetServerCh::OnEndpointAccepted ( NetEnd * endpoint)
virtual

◆ OnEndpointActive()

void ehs::NetServerCh::OnEndpointActive ( NetEnd * endpoint)
virtual

◆ OnEndpointConnect()

bool ehs::NetServerCh::OnEndpointConnect ( NetEnd * endpoint,
Serializer< UInt_64 > payload )
virtual

◆ OnEndpointDisconnect()

void ehs::NetServerCh::OnEndpointDisconnect ( NetEnd * endpoint,
Serializer< UInt_64 > payload )
virtual

◆ OnEndpointTimeout()

void ehs::NetServerCh::OnEndpointTimeout ( NetEnd * endpoint)
virtual

◆ OnShutdown()

Serializer< UInt_64 > ehs::NetServerCh::OnShutdown ( )
virtual

◆ operator=() [1/2]

NetServerCh & ehs::NetServerCh::operator= ( const NetServerCh & server)

◆ operator=() [2/2]

NetServerCh & ehs::NetServerCh::operator= ( NetServerCh && server)
noexcept

Friends And Related Symbol Documentation

◆ EHC

friend class EHC
friend

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