[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/gmos/esp32_https_server/master/https/ConnectionContext.hpp [Back]  [Original]

/*
 * ConnectionContext.hpp
 *
 *  Created on: Dec 15, 2017
 *      Author: frank
 */

#ifndef HTTPS_CONNECTIONCONTEXT_HPP_
#define HTTPS_CONNECTIONCONTEXT_HPP_

#include 

// Required for SSL
#include "openssl/ssl.h"
#undef read

namespace httpsserver {

class ConnectionContext {
public:
	ConnectionContext();
	virtual ~ConnectionContext();

	virtual SSL* ssl() = 0;
	virtual void signalRequestError() = 0;
	virtual void signalClientClose() = 0;
	virtual size_t getCacheSize() = 0;

	virtual size_t readBuffer(byte* buffer, size_t length) = 0;
	virtual size_t pendingBufferSize() = 0;
};

} /* namespace httpsserver */

#endif /* HTTPS_CONNECTIONCONTEXT_HPP_ */

Web Proxy Viewer  |  New URL  |  Original Page