AGK for Pascal
TAgkNetwork.IsActive Property

Checks that the network is active.

property IsActive: Boolean;

In the case of joining a network this will return False if the connection failed or for some reason the connection to the server broke. For a hoster this function will return False if it failed to listen on the specified port for clients. Otherwise it will forever return True as it will not stop managing any connected clients, even if it is left on its own.

Copyright (c) 2012. All rights reserved.