How can I check if a SDLnet TCPsocket
has closed the connection? I tried checking if the socket is NULL
but it doesn't work, this is what I tried:
for(int i = 0; i < clientConnections.size(); i++) {
if(!clientConnections[i]) {
clientConnections.erase(clientConnections.begin() + i);
i--;
}
}
Also I haven't found anything in the documentation.