int SocketConnected(int socket)
Checks to see if a socket index is connected to the server. This is useful in order to free inactive clients from a server.
Note: This doesn't always work (in fact, most of the time SocketConnected() doesn't do the job), so you may want to implement some sort of "heart-beat" signal that must be received within a certain amount of time, or else the client will be disconnected.
if (!SocketConnected(i)) { SocketClose(i); }
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |