/home/barant/Documents/Development/BMASockets/BMATLSSocket.h
#ifndef __BMATLSSocket_h__
#define __BMATLSSocket_h__
#include "includes"
#include "BMATCPSocket.h"
#include <openssl/ssl.h>
class BMATLSSocket : public BMATCPSocket {
public:
BMATLSSocket(BMAEPoll &ePoll, SSL_CTX *ctx);
~BMATLSSocket();
virtual void output(std::stringstream &out);
protected:
void receiveData(char *buffer, int bufferLength) override;
private:
SSL *ssl;
int generate_session_id();
};
#endif
BMATCPSocket
Definition: BMATCPSocket.h:18
BMAEPoll
Definition: BMAEPoll.h:29
BMATLSSocket::receiveData
void receiveData(char *buffer, int bufferLength) override
Definition: BMATLSSocket.cpp:70
BMATLSSocket
Definition: BMATLSSocket.h:18
BMATLSSocket::output
virtual void output(std::stringstream &out)
Definition: BMATLSSocket.cpp:100