示例#1
0
bool OnConnect(void * pParam){
	CMOOSCommClient* pC =  reinterpret_cast<CMOOSCommClient*> (pParam);

	//wildcard registration any two character name beginning with V
	pC->Register("V?","*",0.0);

	return true;
}
示例#2
0
bool on_connect(void * pParam)
{
	CMOOSCommClient * pC = static_cast<CMOOSCommClient*> (pParam);
	return pC->Register("X") && pC->Register("Y");
}
示例#3
0
bool OnConnect(void * pParam)
{
	CMOOSCommClient* pC = reinterpret_cast<CMOOSCommClient*> (pParam);
	pC->Register("X",0.0);
	return true;
}