DragonNest/Server/ServiceManager/SimpleServerFrame.h
Cussrro 47f7895977 Revert "修复编码问题"
This reverts commit 9e69c01767.
2024-12-21 10:04:04 +08:00

23 lines
399 B
C++

#pragma once
class CSimpleServerFrame
{
public:
CSimpleServerFrame();
virtual ~CSimpleServerFrame();
bool Open(USHORT nAcceptPort);
void Close();
virtual void Recv(SOCKET * pSocket, const char * pData, int nLen) = 0;
private:
HANDLE m_hThread;
SOCKET m_hSocket;
USHORT m_nPort;
volatile bool m_bAlive;
void ThreadMain();
static unsigned int __stdcall _threadmain(void * pParam);
};