1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

use async send for tcp connections

This commit is contained in:
andreas
2021-10-24 21:17:10 +02:00
parent 2057b70cb7
commit 2b1eda27d4
4 changed files with 274 additions and 10 deletions

View File

@@ -7,11 +7,13 @@
#include <WiFi.h>
using wiFiClientPtr = std::shared_ptr<WiFiClient>;
class GwClient;
using gwClientPtr = std::shared_ptr<GwClient>;
class GwSocketServer{
private:
const GwConfigHandler *config;
GwLog *logger;
std::list<wiFiClientPtr> clients;
std::list<gwClientPtr> clients;
WiFiServer *server=NULL;
public:
GwSocketServer(const GwConfigHandler *config,GwLog *logger);