SNode.C
Loading...
Searching...
No Matches
net::un::stream::SocketClient< SocketConnectorT, ConfigSocketClientT, SocketContextFactoryT, Args > Class Template Reference

#include <SocketClient.h>

Inheritance diagram for net::un::stream::SocketClient< SocketConnectorT, ConfigSocketClientT, SocketContextFactoryT, Args >:
Collaboration diagram for net::un::stream::SocketClient< SocketConnectorT, ConfigSocketClientT, SocketContextFactoryT, Args >:

Public Member Functions

void connect (const std::string &sunPath, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
void connect (const std::string &sunPath, const std::string &bindSunPath, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
- Public Member Functions inherited from core::socket::stream::SocketClient< SocketConnectorT< net::un::phy::stream::PhysicalSocketClient, ConfigSocketClientT >, SocketContextFactoryT, Args... >
 SocketClient (const std::string &name, const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, Args &&... args)
 
 SocketClient (const std::function< void(SocketConnection *)> &onConnect, const std::function< void(SocketConnection *)> &onConnected, const std::function< void(SocketConnection *)> &onDisconnect, Args &&... args)
 
 SocketClient (const std::string &name, Args &&... args)
 
 SocketClient (Args &&... args)
 
void connect (const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
void connect (const SocketAddress &remoteAddress, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
 
void connect (const SocketAddress &remoteAddress, const SocketAddress &localAddress, 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 () const
 
- Public Member Functions inherited from core::socket::Socket< SocketConnectorT::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::SocketClient< SocketConnectorT< net::un::phy::stream::PhysicalSocketClient, ConfigSocketClientT >, SocketContextFactoryT, Args... >
using SocketConnection
 
using SocketAddress
 
- Public Types inherited from core::socket::Socket< SocketConnectorT::Config >
using Config
 
- Protected Attributes inherited from core::socket::Socket< SocketConnectorT::Config >
std::shared_ptr< Configconfig
 

Detailed Description

template<template< typename PhysicalSocketClient, typename ConfigSocketClientT > typename SocketConnectorT, typename ConfigSocketClientT, typename SocketContextFactoryT, typename... Args>
class net::un::stream::SocketClient< SocketConnectorT, ConfigSocketClientT, SocketContextFactoryT, Args >

Definition at line 39 of file SocketClient.h.

Member Typedef Documentation

◆ Super

template<template< typename PhysicalSocketClient, typename ConfigSocketClientT > typename SocketConnectorT, typename ConfigSocketClientT , typename SocketContextFactoryT , typename... Args>
using net::un::stream::SocketClient< SocketConnectorT, ConfigSocketClientT, SocketContextFactoryT, Args >::Super
private
Initial value:
core::socket::stream::
SocketClient<SocketConnectorT<net::un::phy::stream::PhysicalSocketClient, ConfigSocketClientT>, SocketContextFactoryT, Args...>

Definition at line 44 of file SocketClient.h.

Member Function Documentation

◆ connect() [1/2]

template<template< typename PhysicalSocketClient, typename ConfigSocketClientT > typename SocketConnectorT, typename ConfigSocketClientT , typename SocketContextFactoryT , typename... Args>
void net::un::stream::SocketClient< SocketConnectorT, ConfigSocketClientT, SocketContextFactoryT, Args >::connect ( const std::string & sunPath,
const std::function< void(const SocketAddress &, core::socket::State)> & onStatus ) const
inline

Definition at line 52 of file SocketClient.h.

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

◆ connect() [2/2]

template<template< typename PhysicalSocketClient, typename ConfigSocketClientT > typename SocketConnectorT, typename ConfigSocketClientT , typename SocketContextFactoryT , typename... Args>
void net::un::stream::SocketClient< SocketConnectorT, ConfigSocketClientT, SocketContextFactoryT, Args >::connect ( const std::string & sunPath,
const std::string & bindSunPath,
const std::function< void(const SocketAddress &, core::socket::State)> & onStatus ) const
inline

Definition at line 58 of file SocketClient.h.

60 {
61 Super::getConfig().Remote::setSunPath(sunPath);
62 Super::getConfig().Local::setSunPath(bindSunPath);
63
64 connect(onStatus);
65 }

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