Topic Path: Symbol Reference > Classes > TIdStack Class > TIdStack Methods > SetLoopBack Method
TIdStack.SetLoopBack Method

Secifies the interface used to change the LoopBack socket option for the specified socket.

procedure SetLoopBack(
    AHandle: TIdStackSocketHandle; 
    const AValue: Boolean; 
    const AIPVersion: TIdIPVersion = ID_DEFAULT_IP_VERSION
); virtual; abstract;
Scope is const. Type is Boolean. 

SetLoopBack is an abstract virtual method that specifies the interface used to change the LoopBack socket option for the socket handle specified in AHandle to the value specified in AValue. 

Loopback is the ability to send data on a virtual circuit between two datastream sockets, or two datagram sockets in the same or different processes. One common use is for development and testing network applications, without a network (on a standalone computer). Another is to allow one application to access the services of another, even if it's located on the same machine. 

While these expectations are perfectly reasonable, not all protocol stack implementations guarantee the availability of these capabilities (including, the de facto standard loopback address on TCP/IP hosts). In addition, IPv6 and IP multicast usage may vary based on the protocol stack implementation. 

SetLoopBack must be overridden and implemented in a descendant class to provides access to the capabilities of the protocol stack for the platform or operating system hosting the Indy library.

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