The GetSockName method retrieves the local name of a socket. This method is similar to the Winsock getsockname function.
HRESULT GetSockName( [out] LPSOCKADDR Address, [out] LPINT AddressLength );
Pointer to a sockaddr structure that receives the socket address (name).
On input, specifies the size, in bytes, of the Address buffer. On output, receives the buffer size, in bytes, needed to hold the address.
The method succeeded.
The socket has not been bound to an address using the Bind method.
Server | Requires Windows Server 2008. |
---|---|
Version | Requires Forefront Threat Management Gateway (TMG). |
Header |
Declared in Wspfwext.idl. |
DLL |
Requires Wspsrv.exe. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.