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

Namespaces

namespace  config

Typedefs

template<typename SocketContextFactoryT, typename... Args>
using SocketClient
template<typename SocketContextFactoryT, typename... Args>
using SocketServer

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

◆ SocketServer

Function Documentation

◆ Client() [1/2]

template<typename SocketContextFactory, typename... SocketContextFactoryArgs>
SocketClient< SocketContextFactory, SocketContextFactoryArgs... > net::l2::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)
net::l2::stream::SocketClient< core::socket::stream::legacy::SocketConnector, net::l2::stream::legacy::config::ConfigSocketClient, SocketContextFactoryT, Args... > SocketClient

◆ 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::l2::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::l2::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)
net::l2::stream::SocketServer< core::socket::stream::legacy::SocketAcceptor, net::l2::stream::legacy::config::ConfigSocketServer, SocketContextFactoryT, Args... > SocketServer

◆ 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::l2::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 }