Topic Path: Symbol Reference > Classes > TIdMappedPortTCP Class > TIdMappedPortTCP Events > OnDisconnect Event
ContentsIndexHome
PreviousUpNext
TIdMappedPortTCP.OnDisconnect Event

Event handler signalled when the local client for the proxied connection is disconnected.

property OnDisconnect: TIdServerThreadEvent;

OnDisconnect is a TIdMappedPortContextEvent property that represents the event handler signalled when the local client for the proxied connection is disconnected. 

Event handlers are signalled in the following order during server processing for closing proxied client connections: 

 

Assign a procedure to the OnDisconnect event handler to allow responding to the closed connection during execution of a TIdMappedPortContext instance in the server. 

Use OnOutboundDisconnect to perform processing required when the connection to the remote system in MappedHost and MappedPort has been closed for the proxied connection. OnOutboundDisconnect is not triggered if the client connection to the remote system has not been successfully opened.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.