Files
git 9cb257e7ae Add GameClients drops and keep current 1602 source work.
CN1602 is the local client. KR is the official tree with unpacked Data, System, and Sound. Packed .wpk files stay off git.
2026-08-30 23:24:31 +03:00

42 lines
1.2 KiB
C++

#pragma once
#include <ServerSession.h>
#include <string>
#include <Timer.h>
struct MSG_BASE;
class ServerSessionEx : public ServerSession
, public ISession4StartServiceWorkNode
{
public:
ServerSessionEx();
~ServerSessionEx();
protected:
// CHANGES: f110617.1L ? required by ServerSession
virtual void OnRedirect(DWORD network_index, MSG_SERVER_TYPE* const first_contact_msg);
virtual VOID Init();
virtual VOID OnDisconnect();
public:
virtual VOID Release();
public:
virtual BOOL IsValidObject( DWORD dwCheckValue );
virtual BOOL IsValidState( DWORD dwStatusValue );
virtual BOOL SendPacket4Interface( MSG_BASE* pMsg, WORD wSize );
// 이것은 WorkLoad에서 해당 세션에 대한 유효성을 판별하기 위해서 사용한다.
inline VOID SetSyncKey( DWORD dwSyncValue ) { m_dwSyncKey = dwSyncValue; }
inline DWORD GetSyncKey() { return m_dwSyncKey; }
private:
DWORD m_dwSyncKey;
public:
WORK_LOAD_CONTAINER_SESSION_WORK& GetWorkLoadContainer() { return m_WorkLoad; }
WorkLoadPacketStream& GetWorkLoadPacketStream() { return m_WorkLoadPacketStream; }
private:
WorkLoadPacketStream m_WorkLoadPacketStream;
WORK_LOAD_CONTAINER_SESSION_WORK m_WorkLoad;
};