nn::ac::CTR::CancelConnectAsync Function

Syntax

Result CancelConnectAsync();

Arguments

None.

Return Values

Results.

Description

If an asynchronous automatic connection process is underway, cancels it.

When canceled, the Result return value indicates that the process was canceled.
The error codes obtainable by calling the GetLastErrorCode function are equivalent to the error codes from a failure occurring when the process was canceled.
Use the Result value to determine if the process was successfully canceled.

If cancellation succeeds or if the connection process completes before the cancellation request is received, the nn::os::Event passed to the ConnectAsync function is signaled, and you can get whether the process was canceled by calling the GetConnectResult function. If another thread calls this function while the Connect function is running, you can determine if the process was successfully canceled from the Connect return value.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL