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

Closes a connection on a socket handle.

procedure Disconnect(
    ASocket: TIdStackSocketHandle
); override;
Parameters 
Description 
ASocket 
Socket handle for the operation. 

Disconnect is an overridden procedure that implements the method used to access the protocol stack API method used to close a connection on a socket handle. 

ASocket is the socket handle to be affected by the operation. 

On the .Net platform, the TIdStackSocketHandle.Close method is used to close the connection on the socket handle. 

Exceptions occuring in the method are re-raised using either the EIdSocketError or EIdWrapperException exception types.

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