|Microsoft Internet Security and
Acceleration Server 2000
Gets the local address of a socket.
- [out] Pointer to a Winsock sockaddr structure that
receives the socket address (name).
- [in, out] 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 name or the namelen parameter is not a valid
part of the user address space, or the namelen parameter is
- The socket has not been bound to an address with
This method is similar to the Winsock getsockname
function, which is described in MSDN.