AGK for Pascal
TAgkNetwork.ConnectionCount Property

Returns the number of clients connected to the network.

property ConnectionCount: Integer;

The host counts as a client as does the local client. Meaning that on a connected network there should be at least 2 clients. A host waiting for clients returns 1 if it is on its own. A client trying to connect returns 0 until it connects and the host accepts the client. It should then return 2. 

This property returns the currently number of active connections. To get the number of client objects, use ClientCount instead.

Copyright (c) 2012. All rights reserved.