You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.0 KiB
C++
78 lines
1.0 KiB
C++
#include "manage.h"
|
|
#include "log.h"
|
|
|
|
CManage* CManage::m_pInstance = NULL;
|
|
CManage::CManage(void)
|
|
{
|
|
}
|
|
|
|
CManage::~CManage(void)
|
|
{
|
|
}
|
|
|
|
CManage* CManage::Get_Instance()
|
|
{
|
|
try
|
|
{
|
|
if (NULL == m_pInstance)
|
|
{
|
|
m_pInstance = new CManage;
|
|
}
|
|
}
|
|
catch (...)
|
|
{
|
|
}
|
|
return m_pInstance;
|
|
}
|
|
|
|
void CManage::ReleaseInstance()
|
|
{
|
|
FREE_ANY(m_pInstance);
|
|
}
|
|
|
|
int CManage::Init()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
1. tstart 1 sn 繫列1뵀撈야역迦꿎桿 1撈야긍뵀 sn랗郭쯤
|
|
2.
|
|
|
|
*/
|
|
int CManage::SendCustomCmd(const char* msg, char* res)
|
|
{
|
|
return ERR_INPUT_PARAM;
|
|
}
|
|
|
|
/*
|
|
1. tstatus 1 삿혤1뵀撈야榴檄 res畇흙榴檄(憐鑒)
|
|
2. tresult 2 삿혤2뵀撈야써벎 res畇흙써벎(1pass 0ng)
|
|
|
|
*/
|
|
int CManage::RecvCustomCmd(char* res, const char* key/* = 0*/, int timeout/* = 0*/)
|
|
{
|
|
RETURN_CHK_NOPRT(res, ERR_INPUT_PARAM);
|
|
|
|
|
|
|
|
|
|
return ERR_INPUT_PARAM;
|
|
}
|
|
|
|
|
|
|
|
const char* _pszcmddesc =
|
|
""
|
|
;
|
|
|
|
int CManage::GetCommandDesc(char* pszcmddesc)
|
|
{
|
|
int len = (int)strlen(_pszcmddesc);
|
|
|
|
if (!pszcmddesc) return len;
|
|
|
|
comm_strcpy(pszcmddesc, _pszcmddesc);
|
|
return len;
|
|
}
|