http_layer.hh
Go to the documentation of this file.
#pragma once
#include <memory>
#include "t_layer.hh"
#include "HttpCodec.hh"
namespace LibItsHttp__TypesAndValues {
class HeaderLines;
}
class OCTETSTRING;
class http_layer : public layer {
Params _params;
HttpCodec _codec;
std::unique_ptr<LibItsHttp__TypesAndValues::HeaderLines> _headers;
public:
http_layer() : layer(), _params(), _headers(nullptr) {};
http_layer(const std::string& p_type, const std::string& p_param);
virtual ~http_layer() { _headers.reset(nullptr); };
virtual void send_data(OCTETSTRING& data, Params& params);
virtual void receive_data(OCTETSTRING& data, Params& info);
}; // End of class http_layer
layer
Forward declaration of TITAN class.
Definition: layer.hh:29
LibItsHttp__TypesAndValues
Definition: http_layer.hh:19
http_layer::http_layer
http_layer()
Specialised constructor Create a new instance of the http_layer class.
Definition: http_layer.hh:41
http_layer
Forward declaration of TITAN class.
Definition: http_layer.hh:29
http_layer::_headers
std::unique_ptr< LibItsHttp__TypesAndValues::HeaderLines > _headers
Definition: http_layer.hh:32
http_layer::_codec
HttpCodec _codec
Definition: http_layer.hh:31
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
HttpCodec
Definition: HttpCodec.hh:18
http_layer::~http_layer
virtual ~http_layer()
Default destructor.
Definition: http_layer.hh:52
HttpCodec.hh
http_layer::_params
Params _params
Definition: http_layer.hh:30
t_layer.hh
Header file for ITS abstract protocol layer definition.