setClientConnectCallback
ServerSocket::setClientConnectCallback
Sets the function that will be called when a client connects to the server.
Declaration
void setClientConnectCallback(std::function<void(ConnectedClientID)> callback);
Parameters
Name  | 
Type  | 
Description  | 
|---|---|---|
ipAddress  | 
std::function<void(ConnectedClientID)>  | 
The function that will be called when a client connects to the server.  | 
Returns
None.