nn::nex::BackEndServices::IsConnected Member Function

Syntax

qResult IsConnected() const;

Parameters

None.

Return Values



Value Description
QSUCCESS(Core Connected to the game server (online).
QERROR(RendezVous Offline.

Description

Gets the status of the connection to the game server.

Gets the status of the connection to the game server. The NgsFacade::Logout function must be explicitly called even if this function returns false. Calling this function in every frame has no effect on performance. This function does not return true until the login process is complete.

The connection goes offline when a connection with the AC library is dropped or the application is unable to communicate with the server for a set amount of time.

When this function fails, QERROR(RendezVous, ConnectionDisconnected) is returned. If you convert this value to a network error code using the ErrorCodeConverter::ConvertToNetworkErrorCode function and then pass it to the Error/EULA applet, the error message, "A communication error occurred" is displayed.

Revision History

2014/04/07
Shortened the amount of time before going offline when a network connection established with the AC library is dropped. Changed the return value to a qResult type. This value can be cast to a qBool type for existing evaluations and assignments.
2011/01/27
Initial version.

CONFIDENTIAL