LosaDev source snapshot 2019

This commit is contained in:
LosaDev committed 2026-11-07 13:30:45 +07:00
commit c198676e97
20588 files changed
+8812878

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include "../include/IIocpContext.h"
class IProcessor
{
public:
IProcessor(void) : m_count(NULL) {}
virtual ~IProcessor(void) {}
void SetCountPointer( volatile LONG& count ) { m_count = &count; }
public:
virtual void Process( IIocpContext* context, const uint32 command, const uint8* buffer, const uint32 length ) = 0;
virtual void Process( const uint32 serverId, const uint32 command, const uint8* buffer, const uint32 length ) = 0;
protected:
volatile LONG* m_count;
};