Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketHandle.Reset Method

Restores the socket handle to an uninitialized state.

Pascal
procedure Reset(
    const AResetLocal: boolean = True
);
Parameters 
Description 
AResetLocal 
Indicates the IP and Port properties are cleared for the local connection. Default is True. 

Reset is a procedure used to ensure that socket handle is in an uninitialized state. 

When AResetLocal is True, the IP and Port properties are set to their uninitialized values. The IP address is an empty string. The port number is 0 (zero). 

Reset sets the PeerIP and PeerPort properties to their uninitailized values as well. PeerIP is an empty string. PeerPort is 0 (zero). 

IP and Port numbers (local and remote) for the socket descriptor are updated after calls to Bind, Connect, or Accept

Reset is called from Create, AllocateSocket, and Accept.

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.