23 lines
473 B
C++
23 lines
473 B
C++
#pragma once
|
|
|
|
#include <PublicDefine.h>
|
|
|
|
class AgentInfo
|
|
{
|
|
public:
|
|
AgentInfo(void);
|
|
~AgentInfo(void);
|
|
|
|
private:
|
|
AGENT_INFO m_Info;
|
|
|
|
public:
|
|
VOID SetKey( DWORD dwKey ) { m_Info.m_dwAgentKey = dwKey; }
|
|
VOID SetIP( const char* pszIP ) { strncpy( m_Info.m_szIP, pszIP, MAX_IP_SIZE ); }
|
|
|
|
DWORD GetKey() { return m_Info.m_dwAgentKey; }
|
|
TCHAR* GetIP() { return m_Info.m_szIP; }
|
|
BOOL CompareIP( const TCHAR* pszIP );
|
|
AGENT_INFO& GetAgentInfo(){ return m_Info; }
|
|
};
|