Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cBlockingSslClientSocketLinkCallbacks Class Reference
Inheritance diagram for cBlockingSslClientSocketLinkCallbacks:
Inheritance graph
[legend]
Collaboration diagram for cBlockingSslClientSocketLinkCallbacks:
Collaboration graph
[legend]

Public Member Functions

 cBlockingSslClientSocketLinkCallbacks (cBlockingSslClientSocket &a_Socket)
 
- Public Member Functions inherited from cTCPLink::cCallbacks
virtual void OnTlsHandshakeCompleted (void)
 Called when the TLS handshake has been completed and communication can continue regularly. More...
 
virtual ~cCallbacks ()
 

Private Member Functions

virtual void OnError (int a_ErrorCode, const AString &a_ErrorMsg) override
 Called when an error is detected on the connection. More...
 
virtual void OnLinkCreated (cTCPLinkPtr a_Link) override
 Called when the cTCPLink for the connection is created. More...
 
virtual void OnReceivedData (const char *a_Data, size_t a_Length) override
 Called when there's data incoming from the remote peer. More...
 
virtual void OnRemoteClosed (void) override
 Called when the remote end closes the connection. More...
 

Private Attributes

cBlockingSslClientSocketm_Socket
 

Detailed Description

Definition at line 46 of file BlockingSslClientSocket.cpp.

Constructor & Destructor Documentation

◆ cBlockingSslClientSocketLinkCallbacks()

cBlockingSslClientSocketLinkCallbacks::cBlockingSslClientSocketLinkCallbacks ( cBlockingSslClientSocket a_Socket)
inline

Definition at line 76 of file BlockingSslClientSocket.cpp.

Member Function Documentation

◆ OnError()

virtual void cBlockingSslClientSocketLinkCallbacks::OnError ( int  a_ErrorCode,
const AString a_ErrorMsg 
)
inlineoverrideprivatevirtual

Called when an error is detected on the connection.

Implements cTCPLink::cCallbacks.

Definition at line 69 of file BlockingSslClientSocket.cpp.

◆ OnLinkCreated()

virtual void cBlockingSslClientSocketLinkCallbacks::OnLinkCreated ( cTCPLinkPtr  a_Link)
inlineoverrideprivatevirtual

Called when the cTCPLink for the connection is created.

The callback may store the cTCPLink instance for later use, but it should remove it in OnError(), OnRemoteClosed() or right after Close().

Implements cTCPLink::cCallbacks.

Definition at line 51 of file BlockingSslClientSocket.cpp.

◆ OnReceivedData()

virtual void cBlockingSslClientSocketLinkCallbacks::OnReceivedData ( const char *  a_Data,
size_t  a_Length 
)
inlineoverrideprivatevirtual

Called when there's data incoming from the remote peer.

Implements cTCPLink::cCallbacks.

Definition at line 57 of file BlockingSslClientSocket.cpp.

◆ OnRemoteClosed()

virtual void cBlockingSslClientSocketLinkCallbacks::OnRemoteClosed ( void  )
inlineoverrideprivatevirtual

Called when the remote end closes the connection.

The link is still available for connection information query (IP / port). Sending data on the link is not an error, but the data won't be delivered.

Implements cTCPLink::cCallbacks.

Definition at line 63 of file BlockingSslClientSocket.cpp.

Member Data Documentation

◆ m_Socket

cBlockingSslClientSocket& cBlockingSslClientSocketLinkCallbacks::m_Socket
private

Definition at line 49 of file BlockingSslClientSocket.cpp.


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