FVSDK_ERROR_CODE FVSDK_Connected(FVSDK_Session* pSession);
Checks whether or not the session is connected to a server.
pSession
A pointer to a valid FVSDK_Session structure.
FVSDK_YES if the session is connected; FVSDK_NO if it is not. Error codes can be found in FVSDK_ErrorCodes.h.
// before disconnecting, check if the session is connected
if (FVSDK_Connected(pSession) == FVSDK_YES)
FVSDK_Disconnect(pSession);
else
AfxMessageBox("Not currently connected.");