mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 22:27:05 +00:00
39 lines
1000 B
C++
39 lines
1000 B
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//=============================================================================//
|
|
|
|
#ifndef SVCONNECTIONLESSHANDLER_H
|
|
#define SVCONNECTIONLESSHANDLER_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "inetmsghandler.h"
|
|
|
|
class CServerConnectionlessHandler : public IConnectionlessPacketHandler
|
|
{
|
|
public:
|
|
CServerConnectionlessHandler();
|
|
virtual ~CServerConnectionlessHandler();
|
|
|
|
public:
|
|
bool ProcessConnectionlessPacket( netpacket_t * packet );
|
|
|
|
private :
|
|
|
|
bool ProcessLog(netpacket_t * packet);
|
|
bool ProcessGetChallenge(netpacket_t * packet);
|
|
bool ProcessConnect(netpacket_t * packet);
|
|
bool ProcessInfo(netpacket_t * packet);
|
|
bool ProcessDetails(netpacket_t * packet);
|
|
bool ProcessPlayers(netpacket_t * packet);
|
|
bool ProcessRules(netpacket_t * packet);
|
|
bool ProcessRcon(netpacket_t * packet);
|
|
};
|
|
|
|
extern CServerConnectionlessHandler g_SVConnectionlessHandler;
|
|
|
|
#endif // SVCONNECTIONLESSHANDLER_H
|