nn::ac::CTR::ConnectAsync Function

Syntax

Result ConnectAsync(
Config & config,
os::Event * event
);

Arguments

Name Description
in config Instance of connection conditions.
in event An initialized nn::os::Event that indicates the completion of the operation.

Return Values

The result.

Value Description
ResultSuccess Completed without error.
nn::fs::ResultNotInitialized The FS library has not been initialized.
ResultInvalidData Either NULL was specified as an argument or an uninitialized Event was specified.
ResultAlreadyExists Already processing.
ResultCanceled Canceled while a connection was being processed.
ResultNotAgreeEula The EULA has not been agreed to, or the icon file has not been configured.
A value other than the above. Failed for reasons other than those given above.

Description

Starts an asynchronous automatic connection.

Whether the process succeeds or fails, the nn::os::Event specified in the argument is signaled once processing completes.

Use this after you have called the nn::fs::Initialize function.

Once a connection is established, the nn::os::Event registered by nn::ac::RegisterDisconnectEvent is signaled if the system is accidentally disconnected from the access point. If within this function the icon file is not configured to get the EULA version, ResultNotAgreeEula is returned.

Revision History

2010/11/18
Added an indication specific to getting the application's EULA information.
2010/06/14
Initial version.

CONFIDENTIAL