Internet Direct (Indy)
Home
PreviousUpNext
TIdStack.GetPeerName Method

Retrieves the destination for a remote network connection.

Pascal
procedure GetPeerName(
    ASocket: TIdStackSocketHandle; 
    var VIP: string; 
    var VPort: Integer
); virtual; abstract;
Parameters 
Description 
ASocket 
Socket handle for the operation.
 
VIP 
IP address for the remote network connection.
 
VPort 
Port number for the remote network connection. 

GetPeerName is an abstract virtual method used to access the GetPeerName() API for a protocol stack implementation. 

GetPeerName retrieves the identity for the connection destination. The IP address and Port number for the remote network connection are returned in VIP and VPort. 

GetPeerName can only be used on a socket handle after a call to Connect. If SendTo is used on a datagram socket, the value for GetPeerName is not available.

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.