source-engine/tracker/AdminServer/serverpingmsghandler.cpp

32 lines
980 B
C++
Raw Normal View History

2020-04-22 16:56:21 +00:00
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#include "ServerPingMsgHandler.h"
#include "ServerPing.h"
//-----------------------------------------------------------------------------
// Purpose: Constructor
//-----------------------------------------------------------------------------
CServerPingMsgHandlerDetails::CServerPingMsgHandlerDetails( CServerPing *baseobject, HANDLERTYPE type, void *typeinfo /*= NULL*/ )
: CMsgHandler( type, typeinfo )
{
m_pServerPing = baseobject;
}
//-----------------------------------------------------------------------------
// Purpose: Process cracked message
//-----------------------------------------------------------------------------
bool CServerPingMsgHandlerDetails::Process( netadr_t *from, CMsgBuffer *msg )
{
m_pServerPing->UpdateServer(msg->GetTime());
return true;
}