Retrieves the identity for the local network connection.
procedure GetSocketName( ASocket: TIdStackSocketHandle; var VIP: string; var VPort: TIdPort ); override;
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 overridden procedure that implements the method used to access the GetSocketName() API for the protocol stack implementation.
GetSocketName retrieves the identity for the local network connection using an IPEndPoint for 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.
Exceptions occuring in the method are re-raised using either the EIdSocketError or EIdWrapperException exception types.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|