TUsers
Unit
AstaServer
Declaration
type TUsers = class(TList);
Description
The AstaServerSocket maintains a UserList of type
TUsers. The Tusers is a List of Pascal Record define in AstaTypes.pas as:
UserRecord
= packed record
UserName: string[255];
AppName: string[255];
ConnectTime: TDateTime;
FClientSocket: TCustomWinSocket;
FClientMessage: string;
FMessageStack: TAstaMessageStack;
FStringLine: TAstaStringLine;
FParamList: TAstaParamList;
FMaxAsyncPool: Integer;
end;
Since C++ Builder does not support Pascal Records like this, when using BCB the UserRecord is defined as a TObject descendent.
When a remote AstaClient logs into the server the UserName, Application Name and ConnectTime are recorded in the UserRecord as well as a pointer to the ClientSocket:TCustomWinSocket.
The FParamList can be used to store extra information and will include any Params added to the AstaclientSocket.ClientSocketParams at login time. See the AdvancedLogin Tutorial for code examples of using the ClientSocketParams and of accessing the AstaServerSocket.UserRecord.FParamList at login time.