示例#1
0
//this is a mail callback - it is called as soon as mail arrives
bool OnMail(void *pParam){
	CMOOSCommClient* pC = reinterpret_cast<CMOOSCommClient*>(pParam);

	//grab all the held mail
	MOOSMSG_LIST M;
	pC->Fetch(M); //get the mail
	MOOSMSG_LIST::iterator q; //process it
	for(q=M.begin();q!=M.end();q++){
		q->Trace();//print it
	}
	return true;
}
示例#2
0
bool OnMail (void * pParam)
{
	CMOOSCommClient* pC = reinterpret_cast<CMOOSCommClient*> (pParam);
	MOOSMSG_LIST M;
	pC->Fetch(M);

	MOOSMSG_LIST::iterator q;

	for(q=M.begin();q!=M.end();q++)
	{
		q->Trace();
	}
	return true;
}