mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
intermediate: reading on tcp
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define _GWSOCKETSERVER_H
|
||||
#include "GWConfig.h"
|
||||
#include "GwLog.h"
|
||||
#include "GwBuffer.h"
|
||||
#include <memory>
|
||||
#include <WiFi.h>
|
||||
|
||||
@@ -14,13 +15,16 @@ class GwSocketServer{
|
||||
GwLog *logger;
|
||||
gwClientPtr *clients;
|
||||
WiFiServer *server=NULL;
|
||||
bool allowReceive;
|
||||
int maxClients;
|
||||
int minId;
|
||||
public:
|
||||
GwSocketServer(const GwConfigHandler *config,GwLog *logger);
|
||||
GwSocketServer(const GwConfigHandler *config,GwLog *logger,int minId);
|
||||
~GwSocketServer();
|
||||
void begin();
|
||||
void loop();
|
||||
void sendToClients(const char *buf);
|
||||
void sendToClients(const char *buf,int sourceId);
|
||||
int numClients();
|
||||
bool readMessages(GwBufferWriter *writer);
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user