Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cCallbackSslContext Class Reference

#include <CallbackSslContext.h>

Inheritance diagram for cCallbackSslContext:
Inheritance graph
[legend]
Collaboration diagram for cCallbackSslContext:
Collaboration graph
[legend]

Classes

class  cDataCallbacks
 Interface used as a data sink for the SSL peer data. More...
 

Public Member Functions

 cCallbackSslContext (cDataCallbacks &a_Callbacks)
 Creates a new SSL context with the specified callbacks. More...
 
 cCallbackSslContext (void)
 Creates a new SSL context with no callbacks assigned. More...
 

Protected Member Functions

virtual int ReceiveEncrypted (unsigned char *a_Buffer, size_t a_NumBytes) override
 
virtual int SendEncrypted (const unsigned char *a_Buffer, size_t a_NumBytes) override
 

Protected Attributes

cDataCallbacksm_Callbacks
 The callbacks to use to send and receive SSL peer data. More...
 

Detailed Description

Definition at line 19 of file CallbackSslContext.h.

Constructor & Destructor Documentation

◆ cCallbackSslContext() [1/2]

cCallbackSslContext::cCallbackSslContext ( void  )

Creates a new SSL context with no callbacks assigned.

Definition at line 13 of file CallbackSslContext.cpp.

◆ cCallbackSslContext() [2/2]

cCallbackSslContext::cCallbackSslContext ( cCallbackSslContext::cDataCallbacks a_Callbacks)

Creates a new SSL context with the specified callbacks.

Definition at line 23 of file CallbackSslContext.cpp.

Member Function Documentation

◆ ReceiveEncrypted()

int cCallbackSslContext::ReceiveEncrypted ( unsigned char *  a_Buffer,
size_t  a_NumBytes 
)
overrideprotectedvirtual

Definition at line 32 of file CallbackSslContext.cpp.

◆ SendEncrypted()

int cCallbackSslContext::SendEncrypted ( const unsigned char *  a_Buffer,
size_t  a_NumBytes 
)
overrideprotectedvirtual

Definition at line 46 of file CallbackSslContext.cpp.

Member Data Documentation

◆ m_Callbacks

cDataCallbacks* cCallbackSslContext::m_Callbacks
protected

The callbacks to use to send and receive SSL peer data.

Definition at line 56 of file CallbackSslContext.h.


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