3#include <Foundation/Basics.h>
4#include <Foundation/Communication/IpcChannel.h>
6#ifdef BUILDSYSTEM_ENABLE_ENET_SUPPORT
11class PL_FOUNDATION_DLL plIpcChannelEnet :
public plIpcChannel
14 plIpcChannelEnet(
plStringView sAddress, Mode::Enum mode);
23 virtual void Tick()
override;
29 plTime m_LastConnectAttempt;
Base class for a communication channel between processes.
Definition IpcChannel.h:44
virtual bool RequiresRegularTick()
Override this and return true, if the surrounding infrastructure should call the 'Tick()' function.
Definition IpcChannel.h:104
virtual void InternalConnect()=0
Called on worker thread after Connect was called.
virtual void InternalDisconnect()=0
Called on worker thread after Disconnect was called.
virtual void Tick()
Can implement regular updates, e.g. for polling network state.
Definition IpcChannel.h:106
virtual bool NeedWakeup() const =0
Called by Send to determine whether the message loop need to be woken up.
virtual void InternalSend()=0
Called on worker thread to sent pending messages.
Definition RemoteInterface.h:60
Encapsulates all the data that is transmitted when sending or receiving a message with plRemoteInterf...
Definition RemoteMessage.h:11
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
A Unique ptr manages an object and destroys that object when it goes out of scope....
Definition UniquePtr.h:10
Event type for connections.
Definition RemoteInterface.h:33
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12