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

Callbacks used for connecting to other servers as a client. More...

#include <Network.h>

Inheritance diagram for cNetwork::cConnectCallbacks:
Inheritance graph
[legend]

Public Member Functions

virtual void OnConnected (cTCPLink &a_Link)=0
 Called when the Connect call succeeds. More...
 
virtual void OnError (int a_ErrorCode, const AString &a_ErrorMsg)=0
 Called when the Connect call fails. More...
 
virtual ~cConnectCallbacks ()
 

Detailed Description

Callbacks used for connecting to other servers as a client.

Definition at line 236 of file Network.h.

Constructor & Destructor Documentation

◆ ~cConnectCallbacks()

virtual cNetwork::cConnectCallbacks::~cConnectCallbacks ( )
inlinevirtual

Definition at line 240 of file Network.h.

Member Function Documentation

◆ OnConnected()

virtual void cNetwork::cConnectCallbacks::OnConnected ( cTCPLink a_Link)
pure virtual

Called when the Connect call succeeds.

Provides the newly created link that can be used for communication.

Implemented in cBlockingSslClientSocketConnectCallbacks, cUrlClientRequest, and cLuaTCPLink.

◆ OnError()

virtual void cNetwork::cConnectCallbacks::OnError ( int  a_ErrorCode,
const AString a_ErrorMsg 
)
pure virtual

Called when the Connect call fails.

Implemented in cBlockingSslClientSocketConnectCallbacks, cUrlClientRequest, and cLuaTCPLink.


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