nn::nex::BackEndServices::Terminate Member Function

Syntax

qBool Terminate(
     CallContext * pContext
);

Parameters

Name Description
in pContext The call context.

Return Values



Value Description
true Successful call.
false Failed call. (Only occurs when a CallContext associated with a different asynchronous process is passed.)

Description

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.

Revision History

2011/01/27
Initial version.

CONFIDENTIAL