SNode.C
Loading...
Searching...
No Matches
web::http::server::Server< SocketServerT > Class Template Reference

#include <Server.h>

Inheritance diagram for web::http::server::Server< SocketServerT >:
Collaboration diagram for web::http::server::Server< SocketServerT >:

Public Types

using Request = web::http::server::Request
using Response = web::http::server::Response
using SocketConnection = typename Super::SocketConnection
using SocketAddress = typename SocketConnection::SocketAddress

Public Member Functions

 Server (const std::string &name, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &&onRequestReady)
 Server (const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &&onRequestReady)
 Server (const std::string &name, std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &&onRequestReady)
 Server (const std::function< void(const std::shared_ptr< Request > &, std::shared_ptr< Response > &)> &&onRequestReady)

Private Types

using Super

Detailed Description

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
class web::http::server::Server< SocketServerT >

Definition at line 57 of file Server.h.

Member Typedef Documentation

◆ Request

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
using web::http::server::Server< SocketServerT >::Request = web::http::server::Request

Definition at line 64 of file Server.h.

◆ Response

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
using web::http::server::Server< SocketServerT >::Response = web::http::server::Response

Definition at line 65 of file Server.h.

◆ SocketAddress

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
using web::http::server::Server< SocketServerT >::SocketAddress = typename SocketConnection::SocketAddress

Definition at line 73 of file Server.h.

◆ SocketConnection

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
using web::http::server::Server< SocketServerT >::SocketConnection = typename Super::SocketConnection

Definition at line 72 of file Server.h.

◆ Super

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
using web::http::server::Server< SocketServerT >::Super
private
Initial value:
std::function<void(const std::shared_ptr<Request>&, const std::shared_ptr<Response>&)>>

Definition at line 68 of file Server.h.

Constructor & Destructor Documentation

◆ Server() [1/4]

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
web::http::server::Server< SocketServerT >::Server ( const std::string & name,
const std::function< void(SocketConnection *)> & onConnect,
const std::function< void(SocketConnection *)> & onConnected,
const std::function< void(SocketConnection *)> & onDisconnect,
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> && onRequestReady )
inline

Definition at line 75 of file Server.h.

81 }
SocketServerT< web::http::server::SocketContextFactory, std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> > Super
Definition Server.h:68

◆ Server() [2/4]

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
web::http::server::Server< SocketServerT >::Server ( const std::function< void(SocketConnection *)> & onConnect,
const std::function< void(SocketConnection *)> & onConnected,
const std::function< void(SocketConnection *)> & onDisconnect,
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> && onRequestReady )
inline

Definition at line 83 of file Server.h.

88 }
Server(const std::string &name, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &&onRequestReady)
Definition Server.h:75

◆ Server() [3/4]

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
web::http::server::Server< SocketServerT >::Server ( const std::string & name,
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> && onRequestReady )
inline

Definition at line 90 of file Server.h.

◆ Server() [4/4]

template<template< typename SocketContextFactoryT, typename... Args > typename SocketServerT>
web::http::server::Server< SocketServerT >::Server ( const std::function< void(const std::shared_ptr< Request > &, std::shared_ptr< Response > &)> && onRequestReady)
inlineexplicit

Definition at line 95 of file Server.h.

97 }

The documentation for this class was generated from the following file: