You must be logged in to do that.

SocketConnected

SocketConnected
int SocketConnected(int socket)

Documentation

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.

Example Usage

if (!SocketConnected(i))
{
	SocketClose(i);
}
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.