Changeset 15282 for trunk/FACT++/dim/src/examples
- Timestamp:
- 04/08/13 15:07:07 (12 years ago)
- Location:
- trunk/FACT++/dim/src/examples
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/examples/demo_client.c
r11071 r15282 30 30 scanf("%s",cmnd); 31 31 printf("Sending Command: %s\n",cmnd); 32 dic_cmnd_service(aux,cmnd, strlen(cmnd)+1);32 dic_cmnd_service(aux,cmnd,(int)strlen(cmnd)+1); 33 33 } 34 34 } -
trunk/FACT++/dim/src/examples/pvss_dim_server.cxx
r11071 r15282 227 227 // simpleService.updateService(); 228 228 229 if( strlen(cData.str) < 16)229 if((int)strlen(cData.str) < 16) 230 230 strcat(cData.str," abc"); 231 231 cTestService.updateService(); -
trunk/FACT++/dim/src/examples/rpc_server.cxx
r11071 r15282 72 72 pout.c1 = pin->c1; 73 73 strcpy(pout.str,pin->str); 74 setData(&pout, strlen(pout.str)+1+5);74 setData(&pout, (int)strlen(pout.str)+1+5); 75 75 } 76 76 public: -
trunk/FACT++/dim/src/examples/test_client.c
r14575 r15282 83 83 printf("DNS node = %s\n",node); 84 84 printf("size = %d\n",*size); 85 memcpy(&t, buf, *size);85 memcpy(&t, buf, (size_t)*size); 86 86 printf("t.i = %d, t.d = %2.2f, t.s = %d, t.c = %c, t.f = %2.2f, t.str = %s\n", 87 87 t.i,t.d,t.s,t.c,t.f,t.str); … … 89 89 tsecs = secs; 90 90 my_ctime(&tsecs, str, 128); 91 str[ strlen(str)-1] = '\0';91 str[(int)strlen(str)-1] = '\0'; 92 92 printf("timestamp = %s.%d\n",str,millis); 93 93 -
trunk/FACT++/dim/src/examples/test_server.c
r14936 r15282 110 110 { 111 111 sprintf(str[i],"%s/Service_%03d",argv[1],i); 112 dis_add_service( str[i], "C", str[i], strlen(str[i])+1,112 dis_add_service( str[i], "C", str[i], (int)strlen(str[i])+1, 113 113 (void *)0, 0 ); 114 114 } … … 195 195 sprintf(more_str[curr_more_index],"%s/More_Service_%03d",argv[1],curr_more_index); 196 196 more_ids[curr_more_index] = dis_add_service( more_str[curr_more_index], "C", 197 more_str[curr_more_index], strlen(more_str[curr_more_index])+1,197 more_str[curr_more_index], (int)strlen(more_str[curr_more_index])+1, 198 198 (void *)0, 0 ); 199 199 printf("Adding service %s\n",more_str[curr_more_index]); -
trunk/FACT++/dim/src/examples/test_server.cxx
r14698 r15282 168 168 if(testServ){} 169 169 170 // farr[0] = 1.2;170 // farr[0] = 1.2; 171 171 // farr[1] = 2.3; 172 172 // farrp = new DimService("/PCITCO147/sensors/fan/input","F", farr, sizeof(farr)); … … 208 208 bool_serv[1]->updateService(); 209 209 210 int inCallback = DimServer::inCallback();211 cout << "main: In callback "<< inCallback << endl;210 // int inCallback = DimServer::inCallback(); 211 // cout << "main: In callback "<< inCallback << endl; 212 212 servint.updateService(); 213 213 if(extraDns)
Note:
See TracChangeset
for help on using the changeset viewer.