Implements a TCP-based SYSTAT protocol client.
TIdSystatServer = class(TIdCustomTCPServer);
The Active Users (or systat) protocol provides a useful debugging and measurement tool. An active users service simply sends a list of the currently active users on the host without regard to input received from a client connection. An active user is one who is logged in, such as listed in the SYSTAT or WHO processes on a UNIX (or other?) system.
The TCP-based Active Users Service is defined as a connection based application on TCP. A server listens for TCP connections on TCP port
The UDP-based Active Users Service is defined as a datagram based application on UDP. A server listens for UDP datagrams on UDP port 11. When a datagram is received, an answering datagram is sent containing a list of the currently active users (the data in the received datagram is ignored).
If the list does not fit in one datagram then a sequence of datagrams are sent, with complete information for a user (a line) guaranteed in a single datagram. The user side should wait for a timeout for all datagrams to arrive. Note that they are not necessarily in order.
There is no specific syntax for the list of users. It is recommended that it be limited to the ASCII printable characters, space, carriage return, and line feed. Each user should be listed on a separate line.
Set the value in the DefaultPort property (when different than the default port number for the Systat protocol).
Optional listener threads may be defined by adding values to the Bindings property. If not value are define in Bindings, a default value is created a runtime (when the Active property is set to True).
Set Active to True start listening for client connections to the server, and to begin execution of sessions accepted by the listener thread(s).
Set Active to False to stop listening for new connections to the server, and to terminate active client sessions for the server.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.