28 cout <<
"Size: " << getSize() << endl;
29 cout <<
"Command " << getString() <<
" received" << endl;
45 cout <<
"Command " << complexData->
intval 46 <<
" received " << complexData->
stringval << endl;
93 cout <<
"Received " << val -1 <<
" Answering " << val << endl;
109 complexData.
intval = index;
114 cData.
farr[0] = (float)1.2;
115 cData.
farr[1] = (float)2.2;
116 cData.
farr[2] = (float)3.2;
129 strcpy(cData.
str,
"hello");
131 DimService cTestService(
"COMPLEX_SERVICE_TEST",
"F:10;I:1;I:3;C:20;I:1",
132 (
void *)&cData,
sizeof(cData));
134 DimService complexService(
"COMPLEX_SERVICE",
"I:1;C:1;I:1;F:1;C",
135 (
void *)&complexData,
sizeof(complexData));
137 simpleData = (float)1.23;
139 DimService simpleService(
"SIMPLE_SERVICE", simpleData);
175 complexData.
intval = index;
178 simpleData = (float)1.23;
186 complexData.
intval = index;
187 complexData.
floatval = index * (float)1.1;
189 simpleData += (float)1.1;
229 if((
int)strlen(cData.
str) < 16)
230 strcat(cData.
str,
" abc");
void setQuality(int quality)
RecvCommandComplex(const char *name)
RecvCommand(const char *name)
RpcService(const char *name)
sprintf(name1,"NewService%d", i)