SNode.C
Loading...
Searching...
No Matches
net::in::stream::legacy Namespace Reference

Namespaces

namespace  config
 

Typedefs

template<typename SocketContextFactoryT , typename... Args>
using SocketClient = net::in::stream::SocketClient< core::socket::stream::legacy::SocketConnector, net::in::stream::legacy::config::ConfigSocketClient, SocketContextFactoryT, Args... >
 
template<typename SocketContextFactoryT , typename... Args>
using SocketServer = net::in::stream::SocketServer< core::socket::stream::legacy::SocketAcceptor, net::in::stream::legacy::config::ConfigSocketServer, SocketContextFactoryT, Args... >
 

Functions

template<typename SocketContextFactory , typename... SocketContextFactoryArgs>
SocketClient< SocketContextFactory, SocketContextFactoryArgs... > Client (const std::string &instanceName, const std::function< void(typename SocketClient< SocketContextFactory, SocketContextFactoryArgs... >::Config &)> &configurator, SocketContextFactoryArgs &&... socketContextFactoryArgs)
 
template<typename SocketContextFactory , typename... SocketContextFactoryArgs, typename = std::enable_if_t<not std::is_invocable_v<std::tuple_element_t<0, std::tuple<SocketContextFactoryArgs...>>, typename SocketClient<SocketContextFactory>::Config&>>>
SocketClient< SocketContextFactory, SocketContextFactoryArgs... > Client (const std::string &instanceName, SocketContextFactoryArgs &&... socketContextFactoryArgs)
 
template<typename SocketContextFactory , typename... SocketContextFactoryArgs>
SocketServer< SocketContextFactory, SocketContextFactoryArgs... > Server (const std::string &instanceName, const std::function< void(typename SocketServer< SocketContextFactory, SocketContextFactoryArgs... >::Config &)> &configurator, SocketContextFactoryArgs &&... socketContextFactoryArgs)
 
template<typename SocketContextFactory , typename... SocketContextFactoryArgs, typename = std::enable_if_t<not std::is_invocable_v<std::tuple_element_t<0, std::tuple<SocketContextFactoryArgs...>>, typename SocketServer<SocketContextFactory>::Config&>>>
SocketServer< SocketContextFactory, SocketContextFactoryArgs... > Server (const std::string &instanceName, SocketContextFactoryArgs &&... socketContextFactoryArgs)
 

Typedef Documentation

◆ SocketClient

template<typename SocketContextFactoryT , typename... Args>
using net::in::stream::legacy::SocketClient = typedef net::in::stream::SocketClient<core::socket::stream::legacy::SocketConnector, net::in::stream::legacy::config::ConfigSocketClient, SocketContextFactoryT, Args...>

Definition at line 68 of file SocketClient.h.

◆ SocketServer

template<typename SocketContextFactoryT , typename... Args>
using net::in::stream::legacy::SocketServer = typedef net::in::stream::SocketServer<core::socket::stream::legacy::SocketAcceptor, net::in::stream::legacy::config::ConfigSocketServer, SocketContextFactoryT, Args...>

Definition at line 68 of file SocketServer.h.

Function Documentation

◆ Client() [1/2]

template<typename SocketContextFactory , typename... SocketContextFactoryArgs>
SocketClient< SocketContextFactory, SocketContextFactoryArgs... > net::in::stream::legacy::Client ( const std::string &  instanceName,
const std::function< void(typename SocketClient< SocketContextFactory, SocketContextFactoryArgs... >::Config &)> &  configurator,
SocketContextFactoryArgs &&...  socketContextFactoryArgs 
)

Definition at line 75 of file SocketClient.h.

77 {
78 return core::socket::stream::Client<SocketClient<SocketContextFactory, SocketContextFactoryArgs...>>(
79 instanceName, configurator, std::forward<SocketContextFactoryArgs>(socketContextFactoryArgs)...);
80 }
SocketClient Client(const std::string &instanceName, const std::function< void(typename SocketClient::Config &)> &configurator, Args &&... socketContextFactoryArgs)

◆ Client() [2/2]

template<typename SocketContextFactory , typename... SocketContextFactoryArgs, typename = std::enable_if_t<not std::is_invocable_v<std::tuple_element_t<0, std::tuple<SocketContextFactoryArgs...>>, typename SocketClient<SocketContextFactory>::Config&>>>
SocketClient< SocketContextFactory, SocketContextFactoryArgs... > net::in::stream::legacy::Client ( const std::string &  instanceName,
SocketContextFactoryArgs &&...  socketContextFactoryArgs 
)

Definition at line 86 of file SocketClient.h.

87 {
88 return core::socket::stream::Client<SocketClient<SocketContextFactory, SocketContextFactoryArgs...>>(
89 instanceName, std::forward<SocketContextFactoryArgs>(socketContextFactoryArgs)...);
90 }

◆ Server() [1/2]

template<typename SocketContextFactory , typename... SocketContextFactoryArgs>
SocketServer< SocketContextFactory, SocketContextFactoryArgs... > net::in::stream::legacy::Server ( const std::string &  instanceName,
const std::function< void(typename SocketServer< SocketContextFactory, SocketContextFactoryArgs... >::Config &)> &  configurator,
SocketContextFactoryArgs &&...  socketContextFactoryArgs 
)

Definition at line 75 of file SocketServer.h.

77 {
78 return core::socket::stream::Server<SocketServer<SocketContextFactory, SocketContextFactoryArgs...>>(
79 instanceName, configurator, std::forward<SocketContextFactoryArgs>(socketContextFactoryArgs)...);
80 }
SocketServer Server(const std::string &instanceName, const std::function< void(typename SocketServer::Config &)> &configurator, Args &&... socketContextFactoryArgs)

◆ Server() [2/2]

template<typename SocketContextFactory , typename... SocketContextFactoryArgs, typename = std::enable_if_t<not std::is_invocable_v<std::tuple_element_t<0, std::tuple<SocketContextFactoryArgs...>>, typename SocketServer<SocketContextFactory>::Config&>>>
SocketServer< SocketContextFactory, SocketContextFactoryArgs... > net::in::stream::legacy::Server ( const std::string &  instanceName,
SocketContextFactoryArgs &&...  socketContextFactoryArgs 
)

Definition at line 86 of file SocketServer.h.

87 {
88 return core::socket::stream::Server<SocketServer<SocketContextFactory, SocketContextFactoryArgs...>>(
89 instanceName, std::forward<SocketContextFactoryArgs>(socketContextFactoryArgs)...);
90 }