Files
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

46 lines
1.2 KiB
C++

#ifndef _CLIENT_SINGLE_SESSION_H_
#define _CLIENT_SINGLE_SESSION_H_
#include <Stream/Buffer/BufferFactory.h>
#include <tchar.h>
// forward decl.
class CClientSock;
class CBuffer;
class CPacketToolDispatch;
class CWnd;
class CSingleSession
{
public:
CSingleSession( );
~CSingleSession( );
bool Send( CBuffer* lpBuffer );
bool Recv( );
void Close( );
void Destroy( );
bool Initialize( CPacketToolDispatch* CPacketToolDispatch );
bool Connect( TCHAR* Address, int nPort );
void Disconnected( );
bool GetConnected( );
bool SetCurrentWindow( CWnd* pMainFrame );
CWnd* GetCurrentWindow( );
private:
SOCKET m_hSock; // Socket정의
CClientSock* m_lpClientAsync; // Mfc클레스 CAsyncSocket
CBuffer* m_pRecvBuffer; // 받은데이터를 보관해두자.
CPacketToolDispatch* m_pPacketDispatch; // 받았으면 가지고 놀자..
bool m_bIsConnected;
void CloseSocket( );
bool InitializeInternal( CPacketToolDispatch* pPacketDispatch );
bool Dispatch( unsigned long dwReceivedBytes );
bool SetDispatch( CPacketToolDispatch* pPacketDispatch );
CDefaultBufferFactory m_DefaultBufferFactory;
};
#endif