nn::socket::GetPrimaryAddress Function

Syntax

s32 GetPrimaryAddress(
     u8 * pHostAddress,
     u8 * pNetmask
);

Arguments

Name Description
out pHostAddress Specifies the buffer in which to output the address.
out pNetmask Specifies the output buffer for the netmask.

Return Values

0 or greater on success.

Description

Gets the IP address and netmask of the local host.


CONFIDENTIAL