setClientConnectCallback

ServerSocketInterface::setClientConnectCallback

Sets the function that will be called when a client connects to the server.

Declaration

virtual void setClientConnectCallback(std::function<void(ConnectedClientID)> callback) = 0;

Parameters

Name

Type

Description

ipAddress

std::function<void(ConnectedClientID)>

The function that will be called when a client connects to the server.

Returns

None.