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>
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#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<65><74><EFBFBD><EFBFBD>
|
||||
CClientSock* m_lpClientAsync; // MfcŬ<63><C5AC><EFBFBD><EFBFBD> CAsyncSocket
|
||||
|
||||
CBuffer* m_pRecvBuffer; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD><D8B5><EFBFBD>.
|
||||
CPacketToolDispatch* m_pPacketDispatch; // <20><EFBFBD><DEBE><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>..
|
||||
|
||||
bool m_bIsConnected;
|
||||
|
||||
void CloseSocket( );
|
||||
bool InitializeInternal( CPacketToolDispatch* pPacketDispatch );
|
||||
bool Dispatch( unsigned long dwReceivedBytes );
|
||||
bool SetDispatch( CPacketToolDispatch* pPacketDispatch );
|
||||
CDefaultBufferFactory m_DefaultBufferFactory;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user