AsyncFw 1.2
Async Framework is c++ runtime with timers, poll notifiers, sockets, coroutines, etc.
 
Loading...
Searching...
No Matches
ListenSocket.h
1/*
2Copyright (c) 2026 Alexandr Kuzmuk
3
4This file is part of the AsyncFw project. Licensed under the MIT License.
5See {Link: LICENSE file https://mit-license.org} in the project root for full license information.
6*/
7
8#pragma once
9
10#include "../core/AbstractSocket.h"
11#include "../core/FunctionConnector.h"
12
13namespace AsyncFw {
16class ListenSocket : private AbstractSocket {
17public:
18 using AbstractSocket::address;
19 using AbstractSocket::close;
20 using AbstractSocket::destroy;
21 using AbstractSocket::listen;
22 using AbstractSocket::port;
25 AsyncFw::FunctionConnectorProtected<ListenSocket>::Connector<int, const std::string &, bool *> incoming {AsyncFw::AbstractFunctionConnector::SyncOnly};
26
27protected:
28 void incomingEvent() override;
29};
30
31} // namespace AsyncFw
The ListenSocket class.
Definition ListenSocket.h:16
AsyncFw::FunctionConnectorProtected< ListenSocket >::Connector< int, const std::string &, bool * > incoming
The FunctionConnector for incoming connections.
Definition ListenSocket.h:25