# BMA Server Framework: /home/bradarant/barant/ServerCore/TLSSession.h Source File

/home/bradarant/barant/ServerCore/TLSSession.h
#ifndef __TLSSession_h__
#define __TLSSession_h__
#include "includes"
#include "Session.h"
#include "TLSServerSocket.h"
#include <openssl/ssl.h>
namespace core {
class TLSServerSocket;
class TLSSession : public Session {
public:
TLSSession(EPoll &ePoll, Service &service);
~TLSSession();
virtual void output(std::stringstream &out);
virtual void protocol(std::string data) override;
protected:
void receiveData(char *buffer, int bufferLength) override;
private:
bool initialized = false;
SSL *ssl;
};
}
#endif
core::EPoll
Definition: EPoll.h:31
core
Definition: Command.cpp:4
core::Session
Definition: Session.h:22
core::TLSSession::protocol
virtual void protocol(std::string data) override
Definition: TLSSession.cpp:83
core::Service
Definition: Service.h:20
core::TLSSession::receiveData
void receiveData(char *buffer, int bufferLength) override
Definition: TLSSession.cpp:87
core::TLSSession
Definition: TLSSession.h:23
core::TLSSession::output
virtual void output(std::stringstream &out)
Definition: TLSSession.cpp:123