SNode.C
Loading...
Searching...
No Matches
core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::Context Struct Reference
Collaboration diagram for core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::Context:

Public Member Functions

 Context (const std::shared_ptr< SocketContextFactory > &socketContextFactory, std::function< void(SocketConnection *)> onConnect, std::function< void(SocketConnection *)> onConnected, std::function< void(SocketConnection *)> onDisconnect)

Public Attributes

std::shared_ptr< SocketContextFactorysocketContextFactory
std::function< void(SocketConnection *)> onConnect
std::function< void(SocketConnection *)> onConnected
std::function< void(SocketConnection *)> onDisconnect

Detailed Description

template<typename SocketAcceptorT, typename SocketContextFactoryT, typename... Args>
struct core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::Context

Definition at line 290 of file SocketServer.h.

Constructor & Destructor Documentation

◆ Context()

template<typename SocketAcceptorT, typename SocketContextFactoryT, typename... Args>
core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::Context::Context ( const std::shared_ptr< SocketContextFactory > & socketContextFactory,
std::function< void(SocketConnection *)> onConnect,
std::function< void(SocketConnection *)> onConnected,
std::function< void(SocketConnection *)> onDisconnect )
inline

Definition at line 291 of file SocketServer.h.

299 }
std::shared_ptr< SocketContextFactory > socketContextFactory
std::function< void(SocketConnection *)> onConnected
std::function< void(SocketConnection *)> onConnect
std::function< void(SocketConnection *)> onDisconnect

References onConnect, onConnected, onDisconnect, and socketContextFactory.

Member Data Documentation

◆ onConnect

template<typename SocketAcceptorT, typename SocketContextFactoryT, typename... Args>
std::function<void(SocketConnection*)> core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::Context::onConnect

Definition at line 302 of file SocketServer.h.

Referenced by Context().

◆ onConnected

template<typename SocketAcceptorT, typename SocketContextFactoryT, typename... Args>
std::function<void(SocketConnection*)> core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::Context::onConnected

Definition at line 303 of file SocketServer.h.

Referenced by Context().

◆ onDisconnect

template<typename SocketAcceptorT, typename SocketContextFactoryT, typename... Args>
std::function<void(SocketConnection*)> core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::Context::onDisconnect

Definition at line 304 of file SocketServer.h.

Referenced by Context().

◆ socketContextFactory

template<typename SocketAcceptorT, typename SocketContextFactoryT, typename... Args>
std::shared_ptr<SocketContextFactory> core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::Context::socketContextFactory

Definition at line 300 of file SocketServer.h.

Referenced by Context().


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