source/gjAPI.cpp
void gjAPI::Update()
{
    // update network object
    m_pNetwork->Update();

    if(!this->IsUserConnected()) return;

    if(m_iNextPing)
    {
        // update ping for the user session
        const time_t iCurTime = time(NULL);
        if(iCurTime >= m_iNextPing)
        {
            m_iNextPing = iCurTime + GJ_API_PING_TIME;
            this->__PingSession(m_bActive);
        }
    }
}
// ****************************************************************
/* main update function of the library */
main update function of the library
main update function of the library
void gjAPI::Update()
{
    m_pNetwork->Update();
    if(!this->IsUserConnected()) return;
    if(m_iNextPing)
    {
        const time_t iCurTime = time(NULL);
        if(iCurTime >= m_iNextPing)
        {
            m_iNextPing = iCurTime + GJ_API_PING_TIME;
            this->__PingSession(m_bActive);
        }
    }
}
void gjAPI :: Update ( ) { m_pNetwork -> Update ( ) ; if ( ! this -> IsUserConnected ( ) ) return ; if ( m_iNextPing ) { const time_t iCurTime = time ( NULL ) ; if ( iCurTime >= m_iNextPing ) { m_iNextPing = iCurTime + GJ_API_PING_TIME ; this -> __PingSession ( m_bActive ) ; } } }
main update function of the library
main update function of the library
// update network object // update ping for the user session