34#ifndef _UTILS_GCTCPHUB_HXX_
35#define _UTILS_GCTCPHUB_HXX_
Lightweight locking class for protecting small critical sections.
This class implements an execution of tasks pulled off an input queue.
This class runs a CAN-bus HUB listening on TCP socket using the gridconnect format.
unsigned numClients_
How many clients are connected right now.
SocketListener tcpListener_
Helper object representing the listening on the socket.
void notify() override
Error callback from the gridconnect socket.
void on_new_connection(int fd)
Callback when a new connection arrives.
unsigned get_num_clients()
An object that can schedule itself on an executor to run.