Retrieves the identity for the local network connection.
procedure GetSocketName( ASocket: TIdStackSocketHandle; var VIP: string; var VPort: TIdPort ); virtual; abstract;
Parameters |
Description |
ASocket |
Socket handle for the operation. |
VIP |
IP address for the local network connection. |
VPort |
Port number for the local network connection. |
GetSocketName is an abstract virtual procedure that specifies the method used to access the GetSocketName() API in a protocol stack implementation.
GetSocketName retrieves the identity for the local network connection using the socket handle in ASocket. THe IP address and Port number for the local connection are returned in VIP and VPort.
GetSocketName can be used on a socket handle after a call to Bind, Connect, or Accept. GetSocketName does not always return useful information for the socket handle if Bind is called using an unspecified IP address or port number.
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. |