Indy 9 | Content | Index | Reference

TIdMappedPop3
Hierarchy, Properties, Methods, Events, See Also, Unit: IdMappedPortTCP
Implements a port-based proxy for POP3 connections.

    TIdMappedPop3 = class(TIdMappedTelnet)

Unit
IdMappedPortTCP
Description
TIdMappedPop3 is a TIdMappedTelnet descendant hat implements a port-based proxy for POP3 connections. TIdMappedPop3 allows threaded client connections to a local TIdPOP3Server to be redirected to remote POP3 server using port-mapping. TIdMappedPop3 creates instances of TIdMappedPop3Thread to service local outbound connections to the proxy server, and establish the remote connection using the specified host address and port number.

TIdMappedPop3.DefaultPort
TIdMappedPop3, See Also
Default port number used for the local client connection to the port-based proxy.

    property DefaultPort: integer;

Description
DefaultPort is a published property in TIdMappedPop3 that represents the default port number used for the local client connection in the port-based proxy. DefaultPort is used when the TIdMappedPop3Thread.OutboundConnect method opens a connection from the proxy to the host.

The default value for DefaultPort is IdPORT_POP3 as assigned in Create.

TIdMappedPop3.MappedPort
TIdMappedPop3, See Also
Port number used for connecting to the remote host for the port-based proxy.

    property MappedPort: Integer;

Description
MappedPort is a published property in TIdMappedPop3 that represents the port number used for connecting to the remote host for the port-based proxy. MappedPort is used when the TIdMappedPop3Thread.OutboundConnect method opens a connection from the proxy to the remote host.

The default value for MappedPort is IdPORT_POP3 as assigned in Create.

TIdMappedPop3.UserHostDelimiter
TIdMappedPop3, See Also
Delimiter character between user name and host information from the local client connection.

    property UserHostDelimiter: String;

Description
UserHostDelimiter is a String property that represents the delimiter character used to separate the User name and host portions of the command read from the local client connection to the port-based proxy. UserHostDelimiter is used when OutboundConnect is called for the executing proxy thread.

The default value for UserHostDelimiter is '#' (Decimal 35) as assigned in Create.

TIdMappedPop3.Create
TIdMappedPop3, See Also
Constructor for the object instance.

    constructor Create(AOwner: TComponent); override;

Parameters
AOwner: TComponent
Owner of the object instance.
Description
Create is the constructor for the object instance. Create calls the inherited Create method using AOwner as the owner of the object instance. Create also sets the default values for properties in the POP3 port-based proxy. Create sets the ThreadClass created for local connections to the proxy server to the class type TIdMappedPop3Thread, and the DefaultPort and MappedPort numbers used in the outbound client connection to IdPORT_POP3.

Create initializes the Greeting used for client connections to the proxy to the numeric code 0 (zero) and text '+OK ' followed by the resource string RSPop3ProxyGreeting. ReplyUnknownCommand is initialized to contain the numeric code 0 (zero) and the text '-ERR ' followed by the resource string RSPop3UnknownCommand.

Create sets the default value for the UserHostDelimiter property to the character '#' (Decimal 35).

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.