LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,35 @@
|
||||
#include "StdAfx.h"
|
||||
#include "../include/IIocpContext.h"
|
||||
#include "cCommand.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Operation
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
BOOL cCommand::Run(IIocpContext* context, const uint8* buffer, const uint32 payload)
|
||||
{
|
||||
// 자신의 정보를 출력
|
||||
//Self();
|
||||
|
||||
if(Verify(context, const_cast<uint8*>(buffer), payload))
|
||||
{
|
||||
// 명령처리
|
||||
Run(context);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL cCommand::Run(const uint32 serverId, const uint8* buffer, const uint32 payload)
|
||||
{
|
||||
// 자신의 정보를 출력
|
||||
//Self();
|
||||
|
||||
if(Verify(const_cast<uint8*>(buffer), payload))
|
||||
{
|
||||
// 명령처리
|
||||
Run(serverId);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
Reference in new issue
Block a user