WSAAddressToStringW(3w)

WSAAddressToStringW3w

Usage

INT WSAAddressToStringW
(
LPSOCKADDR sockaddr,
DWORD len,
LPWSAPROTOCOL_INFOW info,
LPWSTR string,
LPDWORD lenstr
)

Overview

Convert a sockaddr address into a readable address string.

Params

sockaddr [In] Pointer to a sockaddr structure.

len [In] Size of the sockaddr structure.

info [In] Pointer to a WSAPROTOCOL_INFOW structure (optional).

string [In/Out] Pointer to a buffer to receive the address string.

lenstr [In/Out] Size of the receive buffer in WCHARs.

Returns

Success: 0

Failure: SOCKET_ERROR.

Notes

The 'info' parameter is ignored.

Implementation

Declared in "winsock2.h".

Implemented in "dlls/ws2_32/socket.c".

Debug channel "winsock".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.