Skip to content

Commit 39bf7b2

Browse files
committed
1 parent 87b1396 commit 39bf7b2

File tree

6 files changed

+11
-51
lines changed

6 files changed

+11
-51
lines changed

CGSFTest/Database/SFFastDBAdaptorImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ BOOL SFFastDBAdaptorImpl::OnBookInfo( BasePacket* pMessage )
5555

5656
SFMessage* pMsg = (SFMessage*)pMessage;
5757

58-
//*pMsg >> (char*)szName;
58+
*pMsg >> (char*)szName;
5959

6060
dbQuery query;
61-
query = "szName=","dffddfdf";
61+
query = "szName=", szName;
6262
dbCursor<tblBookInfo> BookInfo;
6363

6464
if(BookInfo.select(query) > 0)

EngineLayer/EngineLayer.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191
<ClCompile Include="SFMsgPackProtocol.cpp" />
192192
<ClCompile Include="SFNetworkEntry.cpp" />
193193
<ClCompile Include="SFPacketSendGateway.cpp" />
194+
<ClCompile Include="SFProtobufPacket.cpp" />
194195
<ClCompile Include="SFProtobufPacketImpl.cpp" />
195196
<ClCompile Include="SFProtobufProtocol.cpp" />
196197
<ClCompile Include="SFProtocol.cpp" />

EngineLayer/EngineLayer.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@
136136
<ClCompile Include="SFBaseProtocol.cpp">
137137
<Filter>Packet\PacketProtocol</Filter>
138138
</ClCompile>
139+
<ClCompile Include="SFProtobufPacket.cpp">
140+
<Filter>Packet\ProtobufPacket</Filter>
141+
</ClCompile>
139142
</ItemGroup>
140143
<ItemGroup>
141144
<ClInclude Include=".\SFExcel.h">

EngineLayer/SFCasualGameDispatcher.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "SFEngine.h"
44
#include "SFDatabase.h"
55

6+
//로직 쓰레드 수행 메소드 설정 및 로직쓰레드의 개수 설정
67
SFCasualGameDispatcher::SFCasualGameDispatcher(void)
78
{
89
m_nLogicThreadCnt = 1;
@@ -14,6 +15,7 @@ SFCasualGameDispatcher::~SFCasualGameDispatcher(void)
1415
{
1516
}
1617

18+
//로직게이트웨이 큐에 패킷을 큐잉한다.
1719
void SFCasualGameDispatcher::Dispatch(BasePacket* pPacket)
1820
{
1921
LogicGatewaySingleton::instance()->PushPacket(pPacket);
@@ -24,9 +26,12 @@ void SFCasualGameDispatcher::BusinessThread(void* Args)
2426
SFEngine* pEngine = (SFEngine*)Args;
2527
while (SFEngine::GetInstance()->ServerTerminated() == FALSE)
2628
{
29+
//로직게이트웨이 큐에서 패킷을 꺼낸다.
2730
BasePacket* pPacket = LogicGatewaySingleton::instance()->PopPacket();
31+
//로직엔트리 객체의 ProcessPacket 메소드를 호출해서 패킷 처리를 수행한다.
2832
LogicEntrySingleton::instance()->ProcessPacket(pPacket);
2933

34+
//사용한 패킷을 수거한다. 패킷의 타입에 따라 릴리즈 형태가 다름
3035
switch (pPacket->GetPacketType())
3136
{
3237
case SFPACKET_DATA:

EngineLayer/SFCheckSum.h

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,9 @@
1-
/**
2-
* @file NFChecksum.h
3-
* @brief NFChecksum 생성 클래스
4-
* @remarks
5-
* @author 강동명([email protected])
6-
* @date 2009-04-02
7-
*/
8-
9-
101
#pragma once
112

12-
/**
13-
* @class NFChecksum
14-
* @brief 체크섬을 생성합니다.
15-
* @remarks DWORD dwCrc = 0; \r\n
16-
* DWORD dwTemp; \r\n
17-
* sprintf(strScriptPath, "data1.z"); \r\n
18-
* if (NFChecksum::FromFileWin32(strScriptPath, dwTemp) != NO_ERROR) \r\n
19-
* { \r\n
20-
* return FALSE; \r\n
21-
* } \r\n
22-
* dwCrc = dwCrc^dwTemp; \r\n
23-
*
24-
* @par
25-
* @author Edith
26-
* @date 2009-04-03
27-
*/
283
class SFChecksum
294
{
305
public:
31-
/**
32-
* @brief 메모리에서 체크섬을 구한다
33-
* @param buffer 체크섬을 구할 정보
34-
* @param size buffer의 사이즈
35-
* @param &dwCrc32 CRC의 값
36-
* @return 성공여부 성공시 NO_ERROR 리턴
37-
*/
386
static DWORD FromBuffer(BYTE* buffer, size_t size, DWORD &dwCrc32);
39-
40-
/**
41-
* @brief Win32 함수를 이용해 체크섬을 구한다.
42-
* @param filename 파일명
43-
* @param &dwCrc32 CRC의 값
44-
* @return 성공여부 성공시 NO_ERROR 리턴
45-
*/
467
static DWORD FromFileWin32(LPCWSTR filename, DWORD &dwCrc32);
47-
48-
/**
49-
* @brief Filemap 함수를 이용해 체크섬을 구한다.
50-
* @param filename 파일명
51-
* @param &dwCrc32 CRC의 값
52-
* @return 성공여부 성공시 NO_ERROR 리턴
53-
*/
54-
558
static DWORD FromFileFilemap(LPCWSTR filename, DWORD &dwCrc32);
569
};

NetworkLayer/CGSFNet/ProactorService.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ void ProactorService::open( ACE_HANDLE h, ACE_Message_Block& MessageBlock )
4141
ISession::OnConnect(this->m_Serial);
4242

4343
PostRecv();
44-
45-
return;
4644
}
4745

4846
void ProactorService::PostRecv()

0 commit comments

Comments
 (0)