Internet Direct (Indy)
Home
PreviousUpNext
TIdFSP.Disconnect Method

Closes an existing existing FSP session.

Pascal
procedure Disconnect; override;

Disconnect is an overridden procedure used to close an existing FSP session. Since FSP is a connection-less protocol based on UDP datagrams, there is no physical connection to a remote system that needs to be closed. The FSP client does, however, maintain an internal boolean flag that indicates if an FSP session has been initialized by calling the Connect method. 

If a previous FSP session has been established, Disconnect send the FSP CC_BYE command to signal its' intention to the remote FSP host. Disconnect calls the inherited Disconnect method. 

Disconnect clears the internal flag indicating that an FSP session has been established. 

Use Connect to establish a new FSP session for a specified remote FSP host.

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.