Internet Direct (Indy)
Home
PreviousUpNext
TIdMappedPortTCP.OnDisconnect Event

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

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.