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... >
void connect (const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
std::function< void(SocketConnection *)> & getOnConnect ()
std::function< void(SocketConnection *)> setOnConnect (const std::function< void(SocketConnection *)> &onConnect, bool initialize=false)
std::function< void(SocketConnection *)> & getOnConnected ()
std::function< void(SocketConnection *)> setOnConnected (const std::function< void(SocketConnection *)> &onConnected, bool initialize=false)
std::function< void(SocketConnection *)> & getOnDisconnect ()
std::function< void(SocketConnection *)> setOnDisconnect (const std::function< void(SocketConnection *)> &onDisconnect, bool initialize=false)
std::shared_ptr< SocketContextFactorygetSocketContextFactory () const
Public Member Functions inherited from core::socket::Socket< SocketConnectorT::Config >
 Socket (const std::string &name)
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
using Config
Public Types inherited from core::socket::Socket< SocketConnectorT::Config >
using Config
Protected Member Functions inherited from core::socket::Socket< SocketConnectorT::Config >
Socketoperator= (const Socket &)=default
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 61 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 66 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 74 of file SocketClient.h.

74 {
75 Super::getConfig().Remote::setSunPath(sunPath);
76
78 }
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 80 of file SocketClient.h.

82 {
83 Super::getConfig().Remote::setSunPath(sunPath);
84 Super::getConfig().Local::setSunPath(bindSunPath);
85
87 }

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