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_CONFIG_CONFIGADDRESS_H
43#define NET_UN_CONFIG_CONFIGADDRESS_H
45#include "net/config/ConfigAddressLocal.h"
46#include "net/config/ConfigAddressRemote.h"
47#include "net/config/ConfigAddressReverse.h"
48#include "net/un/SocketAddress.h"
50namespace net::config {
54#ifndef DOXYGEN_SHOULD_SKIP_THIS
66 template <
template <
typename SocketAddressT>
typename ConfigAddressTypeT>
69 using Super = ConfigAddressTypeT<SocketAddress>;
75 template <
template <
typename SocketAddressT>
typename ConfigAddressTypeT>
76 class ConfigAddress :
public ConfigAddressTypeT<net::un::SocketAddress> {
78 using Super = ConfigAddressTypeT<net::un::SocketAddress>;
82 const std::string& addressOptionName,
83 const std::string& addressOptionDescription);
86 SocketAddress*
init()
final;
Config & getConfig() const
static constexpr int DISABLED
static constexpr int ERROR
static constexpr int FATAL
void listen(const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
std::list< std::string > getRoutes() const
WebAppT(const std::string &name, const Router &router)
SocketAddress & setSunPath(const std::string &sunPath)
SocketAddress(const std::string &sunPath)
std::string toString(bool expanded=true) const override
std::string getSunPath() const
SocketAddress(const SockAddr &sockAddr, SockLen sockAddrLen)
ConfigAddress & setSunPath(const std::string &sunPath)
SocketAddress * init() final
ConfigAddress & sunPathRequired(bool required=true)
ConfigAddress(net::config::ConfigInstance *instance, const std::string &addressOptionName, const std::string &addressOptionDescription)
ConfigAddress & setSocketAddress(const SocketAddress &socketAddress)
std::string getSunPath() const
PhysicalSocket & operator=(PhysicalSocket &&physicalSocket) noexcept
PhysicalSocket(int type, int protocol)
PhysicalSocket(PhysicalSocket &&physicalSocket) noexcept
~PhysicalSocket() override
int bind(SocketAddress &bindAddress)
PhysicalSocketServer(PhysicalSocketServer &&) noexcept=default
~PhysicalSocketServer() override
PhysicalSocket(PhysicalSocket &&) noexcept=default
~PhysicalSocket() override
void listen(const std::string &sunPath, int backlog, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
void listen(const std::string &sunPath, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
~ConfigSocketServer() override
ConfigSocketServer(net::config::ConfigInstance *instance)
~ConfigSocketServer() override
ConfigSocketServer(const std::string &name)
WebApp Server(const std::string &instanceName, const Router &router, const std::function< void(WebApp::Config &)> &configurator)
WebApp Server(const std::string &instanceName, const express::Router &router, const std::function< void(const std::string &, WebApp::SocketAddress, const core::socket::State &)> &reportState, const std::function< void(typename WebApp::Config &)> &configurator)
SocketServer< SocketContextFactory, SocketContextFactoryArgs... > Server(const std::string &instanceName, SocketContextFactoryArgs &&... socketContextFactoryArgs)
SocketServer< SocketContextFactory, SocketContextFactoryArgs... > Server(const std::string &instanceName, const std::function< void(typename SocketServer< SocketContextFactory, SocketContextFactoryArgs... >::Config &)> &configurator, SocketContextFactoryArgs &&... socketContextFactoryArgs)