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

/home/barant/Development/BMA/server_core/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, TLSServerSocket &server);
~TLSSession();
virtual void output(std::stringstream &out);
virtual void protocol(std::string data) override;
protected:
void init() override;
void receiveData(char *buffer, int bufferLength) override;
private:
bool initialized = false;
TLSServerSocket &server;
SSL *ssl;
};
}
#endif
core::EPoll
Definition: EPoll.h:31
core
Definition: Command.cpp:4
core::Session
Definition: Session.h:22
core::TLSSession::receiveData
void receiveData(char *buffer, int bufferLength) override
Definition: TLSSession.cpp:86
core::TLSSession
Definition: TLSSession.h:23
core::TLSSession::output
virtual void output(std::stringstream &out)
Definition: TLSSession.cpp:122
core::TLSServerSocket
Definition: TLSServerSocket.h:23