2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#ifndef NET_IN6_STREAM_LEGACY_CONFIG_CONFIGSOCKETSERVER_H
21#define NET_IN6_STREAM_LEGACY_CONFIG_CONFIGSOCKETSERVER_H
23#include "net/config/stream/legacy/ConfigSocketServer.h"
24#include "net/in6/stream/config/ConfigSocketServer.h"
26#ifndef DOXYGEN_SHOULD_SKIP_THIS
32namespace net::in6::stream::legacy::
config {
34 class ConfigSocketServer
final :
public net::config::stream::legacy::ConfigSocketServer<net::in6::stream::config::ConfigSocketServer> {
#define APPLICATION(req, res)
static void init(int argc, char *argv[])
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})
SocketAddress(uint16_t port)
SocketAddress & setHost(const std::string &ipOrHostname)
SocketAddress & setPort(uint16_t port)
void init(const Hints &hints={.aiFlags=0,.aiSockType=0,.aiProtocol=0})
std::string getCanonName() const
SocketAddress(const std::string &ipOrHostname)
std::string getHost() const
std::string toString(bool expanded=true) const override
std::shared_ptr< SocketAddrInfo > socketAddrInfo
SocketAddress(const std::string &ipOrHostname, uint16_t port)
SocketAddress(const SockAddr &sockAddr, SockLen sockAddrLen, bool numeric=true)
PhysicalSocket(int type, int protocol)
PhysicalSocket(PhysicalSocket &&) noexcept=default
~PhysicalSocket() override
PhysicalSocketServer(PhysicalSocketServer &&) noexcept=default
~PhysicalSocketServer() override
PhysicalSocket(PhysicalSocket &&) noexcept=default
~PhysicalSocket() override
void listen(const std::string &ipOrHostname, uint16_t port, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
void listen(uint16_t port, int backlog, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
void listen(uint16_t port, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
void listen(const std::string &ipOrHostname, uint16_t port, int backlog, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
ConfigSocketServer(const std::string &name)
~ConfigSocketServer() override
int main(int argc, char *argv[])
Router getRouter(const std::string &webRoot)