Resets the connection to the Alarm Management Resident Process.
Syntax
ShouldReconnect()
Data Type
BOOL
Example
Reset connection on loss of communication to AM.
void CAmvTest::LostAM(CAmvConn* amvConn)
{
BOOL tryReconnect = FALSE;
if(amvConn->ShouldReconnect())
{
tryReconnect = TRUE;
}
ResetConnectionDisplay(amvConn);
if(!tryReconnect)
{
amvConn->SetStateString(IDS_LOSTSERVER);
}
}
CAmvConn class member overview. |