# ConnectionHandler.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/network/ConnectionHandler.hpp"

# ConnectionHandler

Abstract ConnectionHandler.

namespace oatpp { namespace network { 
  class ConnectionHandler {}
}}

# Typedefs

Type Name Summary
oatpp::data::stream::IOStream IOStream Convenience typedef for oatpp::data::stream::IOStream.
std::unordered_map<oatpp::String, oatpp::String> ParameterMap Convenience typedef for accompanying parameters of connection handling.

# Methods

Return Type Name Summary
[none] ~ConnectionHandler Virtual Destructor.
void handleConnection Handle provided connection.
void stop Stop all threads here

# ConnectionHandler::IOStream

Convenience typedef for oatpp::data::stream::IOStream.

typedef oatpp::data::stream::IOStream IOStream

# ConnectionHandler::ParameterMap

Convenience typedef for accompanying parameters of connection handling.

typedef std::unordered_map<oatpp::String, oatpp::String> ParameterMap

# ConnectionHandler::~ConnectionHandler

Virtual Destructor.

virtual ~ConnectionHandler() = default

# ConnectionHandler::handleConnection

Handle provided connection.

virtual void handleConnection(const provider::ResourceHandle<IOStream>& connectionData,
                              const std::shared_ptr<const ParameterMap>& params) = 0

# ConnectionHandler::stop

Stop all threads here

virtual void stop() = 0