qResult IsConnected() const;
None.
Value | Description |
---|---|
QSUCCESS(Core |
Connected to the game server (online). |
QERROR(RendezVous |
Offline. |
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.
qResult
type. This value can be cast to a qBool
type for existing evaluations and assignments.
CONFIDENTIAL