示例#1
0
bool AlarmTransferClient::send(UserTransferMessagePtr utm)
{
	NetworkPackage np;
	(*utm)[_TagServiceId] = m_serviceId;
	np.setUTM(utm);
	return sendPackage(np);
}
示例#2
0
void AlarmTransferClient::registerService()
{
	UserTransferMessagePtr utm = UTM::create(_EvtRegisterService);
	(*utm)[_TagServiceId] = m_serviceId;
	(*utm)[_TagServiceName] = m_procname;
	(*utm)[_TagStartTime] = m_starttime;
	(*utm)[_TagFilePath] = m_path;
	(*utm)[_TagMessage] = m_version;
	(*utm)[_TagAppName] = m_dispName;

	NetworkPackage np;
	np.setUTM(utm);
	sendPackage(np);
}