#ifndef _GWSOCKETSERVER_H #define _GWSOCKETSERVER_H #include "GWConfig.h" #include "GwLog.h" #include #include #include using wiFiClientPtr = std::shared_ptr; class GwClient; using gwClientPtr = std::shared_ptr; class GwSocketServer{ private: const GwConfigHandler *config; GwLog *logger; std::list clients; WiFiServer *server=NULL; public: GwSocketServer(const GwConfigHandler *config,GwLog *logger); void begin(); void loop(); void sendToClients(const char *buf); int numClients(); }; #endif