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>
32 lines
723 B
C++
32 lines
723 B
C++
#ifndef _DBAGENT_REQUEST_H_
|
|
#define _DBAGENT_REQUEST_H_
|
|
|
|
// Àü¹æ ÂüÁ¶
|
|
class CDBRequest;
|
|
class CSendStream;
|
|
class CPacketDispatch;
|
|
class CGameClientDispatch;
|
|
|
|
class CDBRequest
|
|
{
|
|
public:
|
|
|
|
typedef void (*TimeoutRequest)(CPacketDispatch* lpSrcDispatch);
|
|
|
|
CDBRequest(CGameClientDispatch& GameClientDispatch,
|
|
unsigned long dwDurationSec, TimeoutRequest lpTimeoutRequest = 0);
|
|
|
|
bool IsValid() { return (0 != m_lpDBAgentSendStream) && (0 != m_dwRequestKey); }
|
|
CSendStream& GetSendStream() { return *m_lpDBAgentSendStream; }
|
|
unsigned long GetRequestKey() { return m_dwRequestKey; }
|
|
|
|
void CancelRequest();
|
|
|
|
private:
|
|
|
|
unsigned long m_dwRequestKey;
|
|
CSendStream* m_lpDBAgentSendStream;
|
|
};
|
|
|
|
|
|
#endif |