Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Interface for the callbacks for events that can happen on the endpoint. More...
#include <Network.h>
Public Member Functions | |
virtual void | OnError (int a_ErrorCode, const AString &a_ErrorMsg)=0 |
Called when an error occurs on the endpoint. More... | |
virtual void | OnReceivedData (const char *a_Data, size_t a_Size, const AString &a_RemoteHost, UInt16 a_RemotePort)=0 |
Called when there is an incoming datagram from a remote host. More... | |
virtual | ~cCallbacks () |
Interface for the callbacks for events that can happen on the endpoint.
|
inlinevirtual |
|
pure virtual |
Called when an error occurs on the endpoint.
Implemented in cLuaUDPEndpoint.
|
pure virtual |
Called when there is an incoming datagram from a remote host.
Implemented in cLuaUDPEndpoint.