EHS
ehs::NetEnd Class Reference

#include <NetEnd.h>

Public Member Functions

 NetEnd ()
 
 NetEnd (Str_8 id, Endpoint endpoint)
 
 NetEnd (Endpoint endpoint)
 
 NetEnd (NetEnd &&end) noexcept
 
 NetEnd (const NetEnd &end)
 
NetEndoperator= (NetEnd &&end) noexcept
 
NetEndoperator= (const NetEnd &end)
 
UInt_64 GetId () const
 
Str_8 GetName () const
 
NetStatus GetStatus () const
 
UInt_64 GetNextSendId () const
 
void Send (bool deltaLocked, UInt_64 encId, bool ensure, UInt_64 sysId, UInt_64 opId, const Serializer< UInt_64 > &payload)
 
void Send (bool deltaLocked, const Str_8 &encName, bool ensure, const Str_8 &sysName, const Str_8 &opName, const Serializer< UInt_64 > &payload)
 
UInt_64 GetNextRecvId () const
 
Endpoint GetEndpoint () const
 
void SetDeltaRate (float newDeltaRate)
 
float GetDeltaRate () const
 
float GetTimeout () const
 
float GetLastPing () const
 
void SendLatency ()
 
float GetLatency () const
 
UInt_64 GetQueueSlot () const
 

Friends

class NetServerCh
 

Constructor & Destructor Documentation

◆ NetEnd() [1/5]

ehs::NetEnd::NetEnd ( )

◆ NetEnd() [2/5]

ehs::NetEnd::NetEnd ( Str_8  id,
Endpoint  endpoint 
)

◆ NetEnd() [3/5]

ehs::NetEnd::NetEnd ( Endpoint  endpoint)

◆ NetEnd() [4/5]

ehs::NetEnd::NetEnd ( NetEnd &&  end)
noexcept

◆ NetEnd() [5/5]

ehs::NetEnd::NetEnd ( const NetEnd end)

Member Function Documentation

◆ GetDeltaRate()

float ehs::NetEnd::GetDeltaRate ( ) const

◆ GetEndpoint()

Endpoint ehs::NetEnd::GetEndpoint ( ) const

◆ GetId()

UInt_64 ehs::NetEnd::GetId ( ) const

◆ GetLastPing()

float ehs::NetEnd::GetLastPing ( ) const

◆ GetLatency()

float ehs::NetEnd::GetLatency ( ) const

◆ GetName()

Str_8 ehs::NetEnd::GetName ( ) const

◆ GetNextRecvId()

UInt_64 ehs::NetEnd::GetNextRecvId ( ) const

◆ GetNextSendId()

UInt_64 ehs::NetEnd::GetNextSendId ( ) const

◆ GetQueueSlot()

UInt_64 ehs::NetEnd::GetQueueSlot ( ) const

◆ GetStatus()

NetStatus ehs::NetEnd::GetStatus ( ) const

◆ GetTimeout()

float ehs::NetEnd::GetTimeout ( ) const

◆ operator=() [1/2]

NetEnd & ehs::NetEnd::operator= ( const NetEnd end)

◆ operator=() [2/2]

NetEnd & ehs::NetEnd::operator= ( NetEnd &&  end)
noexcept

◆ Send() [1/2]

void ehs::NetEnd::Send ( bool  deltaLocked,
const Str_8 encName,
bool  ensure,
const Str_8 sysName,
const Str_8 opName,
const Serializer< UInt_64 > &  payload 
)

Sends data to the remote endpoint.

Parameters
[in]deltaLockedWhether or not to match the remote endpoint's delta time to prevent overloading the client. This will drop data if delta time does not match.
[in]encIdThe id of the encryption to use. Can be empty for none.
[in]ensureWhether or not to ensure the data was received by the remote endpoint.
[in]sysThe system string id to execute an operation from.
[in]opThe operation string id in the system to execute.
[in]payloadAdditional parameters and data to send to the remote endpoint.

◆ Send() [2/2]

void ehs::NetEnd::Send ( bool  deltaLocked,
UInt_64  encId,
bool  ensure,
UInt_64  sysId,
UInt_64  opId,
const Serializer< UInt_64 > &  payload 
)

Sends data to the remote endpoint.

Parameters
[in]deltaLockedWhether or not to match the remote endpoint's delta time to prevent overloading the client. This will drop data if delta time does not match.
[in]encHashIdThe hash id of the encryption to use. Can be zero for none.
[in]ensureWhether or not to ensure the data was received by the remote endpoint.
[in]sysThe system hash id to execute an operation from.
[in]opThe operation hash id in the system to execute.
[in]payloadAdditional parameters and data to send to the remote endpoint.

◆ SendLatency()

void ehs::NetEnd::SendLatency ( )

◆ SetDeltaRate()

void ehs::NetEnd::SetDeltaRate ( float  newDeltaRate)

Friends And Related Function Documentation

◆ NetServerCh

friend class NetServerCh
friend

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