Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cUDPEndpoint::cCallbacks Class Referenceabstract

Interface for the callbacks for events that can happen on the endpoint. More...

#include <Network.h>

Inheritance diagram for cUDPEndpoint::cCallbacks:
Inheritance graph
[legend]

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 ()
 

Detailed Description

Interface for the callbacks for events that can happen on the endpoint.

Definition at line 179 of file Network.h.

Constructor & Destructor Documentation

◆ ~cCallbacks()

virtual cUDPEndpoint::cCallbacks::~cCallbacks ( )
inlinevirtual

Definition at line 183 of file Network.h.

Member Function Documentation

◆ OnError()

virtual void cUDPEndpoint::cCallbacks::OnError ( int  a_ErrorCode,
const AString a_ErrorMsg 
)
pure virtual

Called when an error occurs on the endpoint.

Implemented in cLuaUDPEndpoint.

◆ OnReceivedData()

virtual void cUDPEndpoint::cCallbacks::OnReceivedData ( const char *  a_Data,
size_t  a_Size,
const AString a_RemoteHost,
UInt16  a_RemotePort 
)
pure virtual

Called when there is an incoming datagram from a remote host.

Implemented in cLuaUDPEndpoint.


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