SNode.C
Loading...
Searching...
No Matches
ConfigSocketServer.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/rc/stream/config/ConfigSocketServer.h"
21
22
#
include
"net/config/stream/ConfigSocketServer.hpp"
23
24
namespace
net::config {
25
class
ConfigInstance
;
26
}
27
28
#
ifndef
DOXYGEN_SHOULD_SKIP_THIS
29
30
#
ifdef
__GNUC__
31
#
pragma
GCC
diagnostic
push
32
#
pragma
GCC
diagnostic
ignored
"-Wfloat-equal"
33
#
ifdef
__has_warning
34
#
if
__has_warning
(
"-Wweak-vtables"
)
35
#
pragma
GCC
diagnostic
ignored
"-Wweak-vtables"
36
#
endif
37
#
if
__has_warning
(
"-Wcovered-switch-default"
)
38
#
pragma
GCC
diagnostic
ignored
"-Wcovered-switch-default"
39
#
endif
40
#
endif
41
#
endif
42
#
include
"utils/CLI11.hpp"
43
#
ifdef
__GNUC__
44
#
pragma
GCC
diagnostic
pop
45
#
endif
46
47
#
endif
/* DOXYGEN_SHOULD_SKIP_THIS */
48
49
namespace
net::rc::stream::
config
{
50
51
ConfigSocketServer
::
ConfigSocketServer
(
net
::
config
::
ConfigInstance
*
instance
)
52
:
net
::
config
::
stream
::
ConfigSocketServer
<
net
::
rc
::
config
::
ConfigAddress
,
net
::
rc
::
config
::
ConfigAddressReverse
>(
instance
) {
53
net
::
rc
::
config
::
ConfigAddress
<
net
::
config
::
ConfigAddressLocal
>::
setChannelRequired
();
54
55
net
::
rc
::
config
::
ConfigAddress
<
net
::
config
::
ConfigAddressLocal
>::
channelOpt
//
56
->
check
(
CLI
::
Range
(1, 30));
57
}
58
59
ConfigSocketServer
::~
ConfigSocketServer
() {
60
}
61
62
}
// namespace net::rc::stream::config
63
64
template
class
net::config::stream::ConfigSocketServer<net::rc::config::ConfigAddress, net::rc::config::ConfigAddressReverse>;
net::config::ConfigInstance
Definition
ConfigInstance.h:41
net::rc::stream
Definition
ConfigSocketClient.cpp:45
net
rc
stream
config
ConfigSocketServer.cpp
Generated on Mon Feb 10 2025 20:21:43 for SNode.C by
1.11.0