Indy 9
|
TIdCustomMappedTelnet = class(TIdMappedPortTCP)
Applications should create instances of TIdMappedTelnet, which publishes properties for access in the object inspector.
property AllowedConnectAttempts: Integer;
AllowedConnectAttempts is used when creating outbound connections for the local client to the port-based proxy server.
property DefaultPort: integer;
property MappedPort: Integer;
constructor Create(AOwner: TComponent); override;
Create sets the default value for the AllowedConnectAttempts property to -1, indicating that unlimited connections are allowed. Create sets the value in DefaultPort and MapperPort to IdPORT_TELNET.
Create also assigns TIdMappedTelnetThread as the ThreadClass for threaded client connections to the proxy.
property OnCheckHostPort: TIdMappedTelnetCheckHostPort;
OnCheckHostPort is called when extracting the host and port number form the TELNET connection string for the executing thread.