2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef NET_UN_STREAM_SOCKETCLIENT_H
43#define NET_UN_STREAM_SOCKETCLIENT_H
45#include "core/socket/stream/SocketClient.h"
46#include "net/un/phy/stream/PhysicalSocketClient.h"
48#ifndef DOXYGEN_SHOULD_SKIP_THIS
55namespace net::un::stream {
57 template <
template <
typename PhysicalSocketClient,
typename ConfigSocketClientT>
typename SocketConnectorT,
58 typename ConfigSocketClientT,
59 typename SocketContextFactoryT,
63 SocketContextFactoryT,
74 void connect(
const std::string& sunPath,
const std::function<
void(
const SocketAddress&, core::socket::
State)>& onStatus)
const {
75 Super::getConfig().Remote::setSunPath(sunPath);
81 const std::string& bindSunPath,
82 const std::function<
void(
const SocketAddress&, core::socket::
State)>& onStatus)
const {
83 Super::getConfig().Remote::setSunPath(sunPath);
84 Super::getConfig().Local::setSunPath(bindSunPath);
void connect(const std::string &sunPath, const std::string &bindSunPath, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
void connect(const std::string &sunPath, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
SocketClient< SocketContextFactory, SocketContextFactoryArgs... > Client(const std::string &instanceName, SocketContextFactoryArgs &&... socketContextFactoryArgs)
SocketClient< SocketContextFactory, SocketContextFactoryArgs... > Client(const std::string &instanceName, const std::function< void(typename SocketClient< SocketContextFactory, SocketContextFactoryArgs... >::Config &)> &configurator, SocketContextFactoryArgs &&... socketContextFactoryArgs)