Topic Path: Symbol Reference > Classes > TIdFSP Class > TIdFSP Methods > Disconnect Method
ContentsIndexHome
PreviousUpNext
TIdFSP.Disconnect Method

Closes an existing existing FSP session.

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.

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