qBool Terminate( CallContext * pContext );
Name | Description | |
---|---|---|
in | pContext |
The call context. |
Value | Description |
---|---|
true |
Successful call. |
false |
Failed call. (Only occurs when a CallContext associated with a different asynchronous process is passed.) |
Terminates NgsFacade
, and transitions to a state in which deletion is possible.
This function can be called while online, offline, logging in, or logging out, so termination of the asynchronous process and transition to offline status are guaranteed.
When the status is either logging in, logged in, or logging out, NgsFacade::Terminate
is called by the NgsFacade
destructor and blocks until the status transitions to offline. We recommend calling NgsFacade::Terminate
before destroying NgsFacade
.
Before calling this function, be sure to execute the ServiceClient::Unbind
function of a class derived from ServiceClient
(such as MatchmakeExtensionClient
or NATTraversalClient
) and the delete
process.
Asynchronous processing sometimes takes a long time when the local device is not connected to a network (when the ac::IsConnected
function returns false
), so it is all right to set the mode to forced termination using the Core::SetTerminateImmediately
function.
CONFIDENTIAL