Share via


IWSDUdpAddress::SetSockaddr (Compact 2013)

3/26/2014

This method sets the socket address information.

Syntax

HRESULT SetSockaddr(
  const SOCKADDR_STORAGE* pSockAddr
);

Parameters

Return Value

The following table shows the possible error code return values.

Error code

Description

S_OK

This method completed successfully.

E_INVALIDARG

pSockAddr is NULL.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

HRESULT_FROM_WIN32 (WSAEINVAL)

The specified address is not a valid socket address, or no transport provider supports the indicated address family.

HRESULT_FROM_WIN32 (WSANOTINITIALISED)

The Winsock 2 DLL has not been initialized. The application must first call WSAStartup to initialize Winsock 2.

HRESULT_FROM_WIN32 (WSAENOBUFS)

No buffer space available.

Requirements

Header

wsdapi.h

Library

wsdapi.lib

See Also

Reference

IWSDUdpAddress
Web Services on Devices Interfaces