Internet Direct (Indy)
Home
PreviousUpNext
TIdStack.SetLoopBack Method

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

Pascal
procedure SetLoopBack(
    AHandle: TIdStackSocketHandle; 
    const AValue: Boolean; 
    const AIPVersion: TIdIPVersion = ID_DEFAULT_IP_VERSION
); virtual; abstract;
Parameters 
Description 
AHandle 
AValue 
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 127.0.0.1, 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.

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.