SNode.C
Loading...
Searching...
No Matches
net::un::stream::SocketServer< SocketAcceptorT, ConfigSocketServerT, SocketContextFactoryT, Args > Class Template Reference

#include <SocketServer.h>

Inheritance diagram for net::un::stream::SocketServer< SocketAcceptorT, ConfigSocketServerT, SocketContextFactoryT, Args >:
Collaboration diagram for net::un::stream::SocketServer< SocketAcceptorT, ConfigSocketServerT, SocketContextFactoryT, Args >:

Public Member Functions

void listen (const std::string &sunPath, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
void listen (const std::string &sunPath, int backlog, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
- Public Member Functions inherited from core::socket::stream::SocketServer< SocketAcceptorT< net::un::phy::stream::PhysicalSocketServer, ConfigSocketServerT >, SocketContextFactoryT, Args... >
 SocketServer (const std::string &name, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, Args &&... args)
 
 SocketServer (const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, Args &&... args)
 
 SocketServer (const std::string &name, Args &&... args)
 
 SocketServer (Args &&... args)
 
void listen (const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
void listen (const SocketAddress &localAddress, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
void listen (const SocketAddress &localAddress, int backlog, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
std::function< void(SocketConnection *)> setOnConnect (const std::function< void(SocketConnection *)> &onConnect)
 
std::function< void(SocketConnection *)> setOnConnected (const std::function< void(SocketConnection *)> &onConnected)
 
std::function< void(SocketConnection *)> setOnDisconnect (const std::function< void(SocketConnection *)> &onDisconnect)
 
std::shared_ptr< SocketContextFactorygetSocketContextFactory ()
 
- Public Member Functions inherited from core::socket::Socket< SocketAcceptorT::Config >
 Socket (const std::string &name)
 
 Socket (const Socket &)=default
 
 Socket (Socket &&) noexcept=delete
 
Socketoperator= (const Socket &)=default
 
Socketoperator= (Socket &&) noexcept=delete
 
virtual ~Socket ()
 
ConfiggetConfig () const
 

Private Types

using Super
 

Additional Inherited Members

- Public Types inherited from core::socket::stream::SocketServer< SocketAcceptorT< net::un::phy::stream::PhysicalSocketServer, ConfigSocketServerT >, SocketContextFactoryT, Args... >
using SocketConnection
 
using SocketAddress
 
- Public Types inherited from core::socket::Socket< SocketAcceptorT::Config >
using Config
 
- Protected Attributes inherited from core::socket::Socket< SocketAcceptorT::Config >
std::shared_ptr< Configconfig
 

Detailed Description

template<template< typename PhysicalSocketServer, typename ConfigSocketServer > typename SocketAcceptorT, typename ConfigSocketServerT, typename SocketContextFactoryT, typename... Args>
class net::un::stream::SocketServer< SocketAcceptorT, ConfigSocketServerT, SocketContextFactoryT, Args >

Definition at line 40 of file SocketServer.h.

Member Typedef Documentation

◆ Super

template<template< typename PhysicalSocketServer, typename ConfigSocketServer > typename SocketAcceptorT, typename ConfigSocketServerT , typename SocketContextFactoryT , typename... Args>
using net::un::stream::SocketServer< SocketAcceptorT, ConfigSocketServerT, SocketContextFactoryT, Args >::Super
private
Initial value:
core::socket::stream::
SocketServer<SocketAcceptorT<net::un::phy::stream::PhysicalSocketServer, ConfigSocketServerT>, SocketContextFactoryT, Args...>

Definition at line 45 of file SocketServer.h.

Member Function Documentation

◆ listen() [1/2]

template<template< typename PhysicalSocketServer, typename ConfigSocketServer > typename SocketAcceptorT, typename ConfigSocketServerT , typename SocketContextFactoryT , typename... Args>
void net::un::stream::SocketServer< SocketAcceptorT, ConfigSocketServerT, SocketContextFactoryT, Args >::listen ( const std::string & sunPath,
const std::function< void(const SocketAddress &, core::socket::State)> & onStatus ) const
inline

Definition at line 53 of file SocketServer.h.

53 {
54 Super::getConfig().Local::setSunPath(sunPath);
55
56 listen(onStatus);
57 }
void listen(const std::string &sunPath, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const

◆ listen() [2/2]

template<template< typename PhysicalSocketServer, typename ConfigSocketServer > typename SocketAcceptorT, typename ConfigSocketServerT , typename SocketContextFactoryT , typename... Args>
void net::un::stream::SocketServer< SocketAcceptorT, ConfigSocketServerT, SocketContextFactoryT, Args >::listen ( const std::string & sunPath,
int backlog,
const std::function< void(const SocketAddress &, core::socket::State)> & onStatus ) const
inline

Definition at line 59 of file SocketServer.h.

61 {
62 Super::getConfig().Local::setSunPath(sunPath);
63 Super::getConfig().setBacklog(backlog);
64
65 listen(onStatus);
66 }

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