My Project
Public Member Functions | Public Attributes | List of all members
core::TLSServer Class Reference

#include <TLSServer.h>

Inheritance diagram for core::TLSServer:
Inheritance graph
[legend]
Collaboration diagram for core::TLSServer:
Collaboration graph
[legend]

Public Member Functions

 TLSServer (EPoll &ePoll, IPAddress address)
 
 ~TLSServer ()
 
TCPSessiongetSocketAccept ()
 
- Public Member Functions inherited from core::TCPServer
 TCPServer (EPoll &ePoll, IPAddress address, std::string text="")
 
 ~TCPServer ()
 
void removeFromSessionList (TCPSession *session)
 
virtual void sessionErrorHandler (std::string errorString, std::stringstream &out)
 
virtual TCPSessiongetSocketAccept (EPoll &epoll)
 
void output (TCPSession *session)
 Output the consoles array to the console.
 
- Public Member Functions inherited from core::TCPSocket
 TCPSocket (EPoll &ePoll)
 
 TCPSocket (EPoll &ePoll, std::string text)
 
void connect (IPAddress &address)
 
virtual void output (std::stringstream &out)
 
- Public Member Functions inherited from core::Socket
 Socket (EPoll &ePoll)
 
 Socket (EPoll &ePoll, std::string text)
 
void shutdown (std::string text="unknown")
 
void setDescriptor (int descriptor)
 Set the descriptor for the socket. More...
 
int getDescriptor ()
 Get the descriptor for the socket.
 
bool eventReceived (struct epoll_event event)
 Parse epoll event and call specified callbacks. More...
 
int write (std::string data)
 
void write (char *buffer, int length)
 
void output (std::stringstream &out)
 
virtual void onRegister ()
 Called when the socket has finished registering with the epoll processing. More...
 
virtual void onRegistered ()
 
virtual void onUnregister ()
 Called when the socket has finished unregistering for the epoll processing. More...
 
bool needsToWrite ()
 
- Public Member Functions inherited from core::Command
virtual bool check (std::string request)
 
virtual void output (Session *session)
 
void setName (std::string name)
 
std::string getName ()
 

Public Attributes

SSL_CTX * ctx
 
- Public Attributes inherited from core::TCPServer
IPAddressListblackList
 
IPAddressListwhiteList
 
std::vector< TCPSession * > sessions
 
CommandList commands
 
- Public Attributes inherited from core::TCPSocket
IPAddress ipAddress
 
- Public Attributes inherited from core::Socket
class {
bufferSize
 
bool active = false
 
- Public Attributes inherited from core::Object
std::string name
 
std::string tag
 

Additional Inherited Members

- Protected Member Functions inherited from core::TCPServer
void onDataReceived (std::string data) override
 
int processCommand (std::string command, TCPSession *session, std::stringstream &data) override
 
- Protected Member Functions inherited from core::Socket
void setBufferSize (int length)
 
virtual void onDataReceived (char *buffer, int len)
 
virtual void receiveData (char *buffer, int bufferLength)
 
- Protected Attributes inherited from core::Socket
EPollePoll
 
bool shutDown = false
 

Detailed Description

TLSServer

Manage a socket connection as a TLS server type. Connections to the socket are processed through the accept functionality.

Constructor & Destructor Documentation

◆ TLSServer()

core::TLSServer::TLSServer ( EPoll ePoll,
IPAddress  address 
)

The constructor.

Parameters
ePollthe BMAEPoll instance that manages the socket.
urlthe IP address for the socket to receive connection requests.
portthe port number that the socket will listen on.
commandNamethe name of the command used to invoke the status display for this object.
Returns
the instance of the BMATLSServerSocket.

◆ ~TLSServer()

core::TLSServer::~TLSServer ( )

The destructor for this object.


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