GetConnectingNetworkArea

nn::ac::CTR::GetConnectingNetworkArea Function

Syntax

Result GetConnectingNetworkArea(
     NetworkArea * area
);

Parameters

Name Description
out area Variable for writing a WAN connection or a LAN connection.

Return Values

The result.

Value Description
Result::IsSuccess Completed without error.
ResultInvalidData NULL was specified as an argument.
ResultNotConnecting Not connected to a network.
A value other than the above. Failed for reasons other than those given above.

Description

Gets whether the currently connected access point is a WAN connection or a LAN connection.

Even if connected with the LAN specification as set by DebugSetNetworkArea, this function will return WAN if it has confirmed that a process operating in the background has sent a request with a WAN specification out over the Internet.

Revision History

2011/10/27
Initial version.

CONFIDENTIAL