REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
jsonl_server.h
Go to the documentation of this file.
1// Copyright (c) 2024 anabrid GmbH
2// Contact: https://www.anabrid.com/licensing/
3//
4// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
5
6#pragma once
7
8#ifdef ARDUINO
9
10#include "net/auth.h"
11#include "net/ethernet.h"
12#include "utils/durations.h"
13#include "utils/singleton.h"
14#include <list>
15
16namespace msg {
17
22struct JsonlServer : public utils::HeapSingleton<JsonlServer> {
41
42 std::list<Client> clients;
43 net::EthernetServer server;
44 void loop();
45 void begin();
46};
47
48} // namespace msg
49#endif // ARDUINO
A thin wrapper around the username.
Definition auth.h:231
Define singletons which are not static-space allocated (and thus consume valuable ICTM space).
Definition singleton.h:46
Definition carrier.h:12
utils::duration last_contact
Application level timeout, not to be confused with TCP-Level timout realized by QNEthernet.
net::EthernetClient socket
net::auth::AuthentificationContext user_context
Formerly known as MulticlientServer, this implements a "multi-threading" version of the simple TCP/IP...
net::EthernetServer server
std::list< Client > clients
Simple time tracking (up to 50 days)
Definition durations.h:15