property UserCheckList: TCheckListBox;
ASTA provides a built-in TUsers object that tracks the users connected to the server. Drop a TCheckListBox component onto the server and then set the UserCheckList to it. When users connect or disconnect the CheckListBox will populate/depopulate automatically.
The UserCheckList will populate with the Socket (the client IP address and port on which it is communicating), the UserName and the ApplicationName (if values are assigned to those properties . . . see AutoLoginDlg).
This screenshot shows a UserCheckList in action.
To disconnect specific users, utilize the KillSelectedUsers method. Place an "x" next to the user or users that you wish to disconnect and then issue the KillSelectedUsers command.
To broadcast to specific users, utilize the SendSelectPopup or SendSelectCodedMessage command.