nn::socket::GetHostId Function
u32 GetHostId(
void
);
None.
| Value | Description |
|---|---|
| 0 | The system is not in a state where communication is possible. (No IPv4 address is allocated to the local host.) |
| 0 | In other cases, returns a 32-bit value for the network byte order for the host's primary IPv4 address. |
Gets the local host's primary IPv4 address.
CONFIDENTIAL