<< Back


FVSDK_Connected

Synopsis

FVSDK_ERROR_CODE FVSDK_Connected(FVSDK_Session* pSession);

Description

Checks whether or not the session is connected to a server.

Parameters

pSession

A pointer to a valid FVSDK_Session structure.

Return Value

FVSDK_YES if the session is connected; FVSDK_NO if it is not. Error codes can be found in FVSDK_ErrorCodes.h.

Example

// before disconnecting, check if the session is connected
if (FVSDK_Connected(pSession) == FVSDK_YES)
    FVSDK_Disconnect(pSession);
else
    AfxMessageBox("Not currently connected.");