LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user