Cuberite
A lightweight, fast and extensible game server for Minecraft
SslHTTPServerConnection.h
Go to the documentation of this file.
1 
2 // SslHTTPServerConnection.h
3 
4 // Declares the cSslHTTPServerConnection class representing a HTTP connection made over an SSL link
5 
6 
7 
8 
9 
10 #pragma once
11 
12 #include "HTTPServerConnection.h"
13 #include "../mbedTLS++/BufferedSslContext.h"
14 
15 
16 
17 
18 
21 {
23 
24 public:
25 
28  cSslHTTPServerConnection(cHTTPServer & a_HTTPServer, const std::shared_ptr<const cSslConfig> & a_Config);
29 
30  virtual ~cSslHTTPServerConnection() override;
31 
32 protected:
34 
35  // cHTTPConnection overrides:
36  virtual void OnReceivedData(const char * a_Data, size_t a_Size) override; // Data is received from the client
37  virtual void SendData(const void * a_Data, size_t a_Size) override; // Data is to be sent to client
38 } ;
39 
40 
41 
42 
cHTTPServerConnection(cHTTPServer &a_HTTPServer)
Creates a new instance, connected to the specified HTTP server instance.
virtual ~cSslHTTPServerConnection() override
cSslHTTPServerConnection(cHTTPServer &a_HTTPServer, const std::shared_ptr< const cSslConfig > &a_Config)
Creates a new connection on the specified server.
virtual void OnReceivedData(const char *a_Data, size_t a_Size) override
Data is received from the client.
virtual void SendData(const void *a_Data, size_t a_Size) override
Called to send raw data over the link.