# SsdpStreamHandler.hpp

This File On Github
Ask A Question

API: latest
module: oatpp-ssdp
#include "oatpp-ssdp/SsdpStreamHandler.hpp"

# SsdpStreamHandler

Handler of SSDP packet stream.

namespace oatpp { namespace ssdp { 
  class SsdpStreamHandler : public base::Countable, public network::server::ConnectionHandler {}
}}

# Methods

Return Type Name Summary
[none] SsdpStreamHandler Multiple implementations:
  1. Constructor.
  2. Constructor.
  3. Constructor.
std::shared_ptr<SsdpStreamHandler> createShared Create shared SsdpStreamHandler.
void setErrorHandler Set root error handler for all requests coming through this Connection Handler.
void addRequestInterceptor Set request interceptor. Request intercepted after route is resolved but before corresponding route endpoint is called.
void handleConnection Implementation of oatpp::network::server::ConnectionHandler::handleConnection().
void stop Tell all worker threads to exit when done.

# SsdpStreamHandler::SsdpStreamHandler

  1. Constructor.
    SsdpStreamHandler(const std::shared_ptr<web::server::HttpProcessor::Components>& components)
    
  2. Constructor.
    SsdpStreamHandler(const std::shared_ptr<web::server::HttpRouter>& router)
      : SsdpStreamHandler(std::make_shared<web::server::HttpProcessor::Components>(router))
    
  3. Constructor.
    SsdpStreamHandler(const std::shared_ptr<web::server::HttpRouter>& router,
                      const std::shared_ptr<web::server::HttpProcessor::Config>& config)
      : SsdpStreamHandler(std::make_shared<web::server::HttpProcessor::Components>(router, config))
    

# SsdpStreamHandler::createShared

Create shared SsdpStreamHandler.

static std::shared_ptr<SsdpStreamHandler> createShared(const std::shared_ptr<web::server::HttpRouter>& router)

# SsdpStreamHandler::setErrorHandler

Set root error handler for all requests coming through this Connection Handler. All unhandled errors will be handled by this error handler.

void setErrorHandler(const std::shared_ptr<web::server::handler::ErrorHandler>& errorHandler)

# SsdpStreamHandler::addRequestInterceptor

Set request interceptor. Request intercepted after route is resolved but before corresponding route endpoint is called.

void addRequestInterceptor(const std::shared_ptr<web::server::handler::RequestInterceptor>& interceptor)

# SsdpStreamHandler::handleConnection

Implementation of oatpp::network::server::ConnectionHandler::handleConnection().

void handleConnection(const std::shared_ptr<IOStream>& connection, const std::shared_ptr<const ParameterMap>& params) override

# SsdpStreamHandler::stop

Tell all worker threads to exit when done.

void stop() override