wut  1.0.0-beta9
Wii U Toolchain
Namespaces | Typedefs | Functions
nn::ac Namespace Reference

Auto Connect API, used for managing and connecting to internet connection profiles. More...

Namespaces

 detail
 C++ linkage for the autoconnect API, see nn::ac for use.
 

Typedefs

typedef uint32_t ConfigIdNum
 An ID number representing a network configuration. More...
 

Functions

static nn::Result Initialize ()
 Initialise the Auto Connect library. More...
 
static void Finalize ()
 Cleanup the Auto Connect library. More...
 
static nn::Result GetStartupId (ConfigIdNum *id)
 Gets the default connection configuration id. More...
 
static nn::Result Connect (ConfigIdNum id)
 Connects to a network, using the configuration represented by the given ConfigIdNum. More...
 
static nn::Result GetAssignedAddress (uint32_t *ip)
 Gets the IP address assosciated with the currently active connection. More...
 

Detailed Description

Auto Connect API, used for managing and connecting to internet connection profiles.

Typedef Documentation

◆ ConfigIdNum

typedef uint32_t ConfigIdNum

An ID number representing a network configuration.

These are the same IDs as shown in System Settings' Connection List.

Definition at line 27 of file ac_cpp.h.

Function Documentation

◆ Initialize()

static nn::Result nn::ac::Initialize ( )
inlinestatic

Initialise the Auto Connect library.

Call this function before any other nn::ac functions.

Returns
A Result - see nn::Result::IsSuccess and nn::Result::IsFailure.
See also

Definition at line 60 of file ac_cpp.h.

◆ Finalize()

static void nn::ac::Finalize ( )
inlinestatic

Cleanup the Auto Connect library.

Do not call any nn::ac functions (other than Initialize) after calling this function.

See also

Definition at line 73 of file ac_cpp.h.

◆ GetStartupId()

static nn::Result nn::ac::GetStartupId ( ConfigIdNum id)
inlinestatic

Gets the default connection configuration id.

This is the default as marked in System Settings.

Parameters
idA pointer to an ConfigIdNum to write the config ID to. Must not be a nullptr.
Returns
A Result - see nn::Result::IsSuccess and nn::Result::IsFailure.

Definition at line 92 of file ac_cpp.h.

◆ Connect()

static nn::Result nn::ac::Connect ( ConfigIdNum  id)
inlinestatic

Connects to a network, using the configuration represented by the given ConfigIdNum.

Parameters
idThe ConfigIdNum representing the network to connect to.
Returns
A Result - see nn::Result::IsSuccess and nn::Result::IsFailure.

Definition at line 109 of file ac_cpp.h.

◆ GetAssignedAddress()

static nn::Result nn::ac::GetAssignedAddress ( uint32_t *  ip)
inlinestatic

Gets the IP address assosciated with the currently active connection.

Parameters
ipA pointer to write the IP address to, in numerical form.
Returns
A Result - see nn::Result::IsSuccess and nn::Result::IsFailure.

Definition at line 127 of file ac_cpp.h.