Indy 9 | Content | Index | Reference

TIdMappedPortTCP
Hierarchy, Properties, Methods, Events, See Also, Unit: IdMappedPortTCP
Implements a proxy for TCP connections to a remote computer.

    TIdMappedPortTCP = class(TIdTCPServer)

Unit
IdMappedPortTCP
Description
TIdMappedPortTCP is a TIdTCPServer descendant that implements a proxy for connections to a remote computer system. TIdMappedPortTCP listens for connections on a designated port number and makes a connection to another server using a specified port number. This is useful for certain types of proxy programs.

TIdMappedPortTCP.MappedHost
TIdMappedPortTCP, See Also
Host address for mapped port connections.

    property MappedHost: String;

Description
MappedHost is a String property that represents the address of the host computer that is the endpoint for TIdMappedPortTCP client connections. MappedHost is assigned to the Host property for the TCP client created by TIdMappedPortTCP.

TIdMappedPortTCP.MappedPort
TIdMappedPortTCP, See Also
Port number for mapped connections to the host.

    property MappedPort: Integer;

Description
MappedPort is an Integer property that represents the port number used by TIdMappedPortTCP to establish a connection with the remote host computer. MappedPort is assigned to the port number for the TCP client created by TIdMappedPortTCP.

TIdMappedPortTCP.Create
TIdMappedPortTCP, 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 to initialize the object instance, and sets MappedPort to the constant value ID_MAPPED_PORT_TCP_PORT.

TIdMappedPortTCP.OnConnect
TIdMappedPortTCP, See Also
Event handler signalled for local client connection to the proxy server.

    property OnConnect: TIdMappedPortThreadEvent;

Description
OnConnect is a TIdMappedPortThreadEvent property signalled when a threaded client connection to the proxy server is establised. OnConnect allows the server to implement processing required to verify or log local client connections prior to establishing the outbound connection to the renmote computer system.

TIdMappedPortTCP.OnDisconnect
TIdMappedPortTCP, See Also
Event handler signalled when the local client connection is closed.

    property OnDisconnect: TIdMappedPortThreadEvent;

Description
OnDisconnect is a TIdMappedPortThreadEvent property that represents the event handler signalled when a threaded client connection is established to the port-based proxy server. OnDisconnect allows the server to implement logging or processing required when the local connection for the peer thread has been closed.

TIdMappedPortTCP.OnExecute
TIdMappedPortTCP, See Also
Event handler for reading data sent to the remote system on the proxied connection.

    property OnExecute: TIdMappedPortThreadEvent;

Description
OnExecute is a TIdMappedPortThreadEvent property that represents the event handler triggered during execution of a threaded client connection to the port-based proxy server. OnExecute allows the access to the threaded client connection for the purposes of reading data from the local connection, and forwarding the data to the outbound client connection to the remote system.

TIdMappedPortTCP.OnOutboundConnect
TIdMappedPortTCP, See Also
Event trigered when an outcbound connection to the remnote system is opened.

    property OnOutboundConnect: TIdMappedPortOutboundConnectEvent;

Description
OnOutboundConnect is a TIdMappedPortOutboundConnectEvent property that represents the event handler triggered when an outbound connection has been opened for the local client connection to the proxy server. OnOutboundConnect can have an optional exception type raised while trying to open the connection to the remote computer system.

TIdMappedPortTCP.OnOutboundData
TIdMappedPortTCP, See Also
Event handler signalled when data is available to send to the remote computer system.

    property OnOutboundData: TIdMappedPortThreadEvent;

Description
OnOutboundData is a TIdMappedPortThreadEvent property that represents the event handler signalled when data has been read from the local client connection to the port-based proxy server. OnOutboundData is used during execution of the client thread after the local and remote connections have been established, after data has been read from the local connection, and just prior to sending data to the remote connection.

TIdMappedPortTCP.OnOutboundDisconnect
TIdMappedPortTCP

    property OnOutboundDisconnect: TIdMappedPortThreadEvent;

Description
OnOutboundDisconnect

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