SNode.C
Loading...
Searching...
No Matches
ConfigAddress.cpp
Go to the documentation of this file.
1/*
2 * SNode.C - a slim toolkit for network communication
3 * Copyright (C) Volker Christian <me@vchrist.at>
4 * 2020, 2021, 2022, 2023, 2024, 2025
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include "net/un/config/ConfigAddress.h"
21
22#include "net/config/ConfigAddressBase.hpp" // IWYU pragma: keep
23#include "net/config/ConfigAddressLocal.hpp" // IWYU pragma: keep
24#include "net/config/ConfigAddressRemote.hpp" // IWYU pragma: keep
25#include "net/config/ConfigAddressReverse.hpp" // IWYU pragma: keep
26#include "net/config/ConfigInstance.h"
27#include "net/config/ConfigSection.hpp"
28#include "utils/Uuid.h"
29
30#ifndef DOXYGEN_SHOULD_SKIP_THIS
31
32#include "core/system/unistd.h"
33#include "utils/PreserveErrno.h"
34
35#endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37namespace net::un::config {
38
39 template <template <typename SocketAddress> typename ConfigAddressType>
50
51 template <template <typename SocketAddress> typename ConfigAddressType>
54
55 try {
57 } catch (const core::socket::SocketAddress::BadSocketAddress&) {
58 delete socketAddress;
59 socketAddress = nullptr;
60
61 throw;
62 }
63
65 }
66
67 template <template <typename SocketAddress> typename ConfigAddressType>
71 return *this;
72 }
74 template <template <typename SocketAddress> typename ConfigAddressType>
85
86 template <template <typename SocketAddress> typename ConfigAddressType>
90
91 template <template <typename SocketAddress> typename ConfigAddressType>
97
98} // namespace net::un::config
99
100template class net::config::ConfigAddress<net::un::SocketAddress>;
101template class net::config::ConfigAddressLocal<net::un::SocketAddress>;
102template class net::config::ConfigAddressRemote<net::un::SocketAddress>;
103template class net::config::ConfigAddressReverse<net::un::SocketAddress>;
104template class net::config::ConfigAddressBase<net::un::SocketAddress>;
105template class net::un::config::ConfigAddress<net::config::ConfigAddressLocal>;
106template class net::un::config::ConfigAddress<net::config::ConfigAddressRemote>;
107template class net::un::config::ConfigAddressReverse<net::config::ConfigAddressReverse>;