Changeset 14936 for trunk/FACT++/dim/src
- Timestamp:
- 02/21/13 13:07:34 (12 years ago)
- Location:
- trunk/FACT++/dim/src
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/benchmark/benchClient.cxx
r11071 r14936 23 23 } 24 24 public : 25 Service(char *name) : DimInfo(name, "--") {/*nReceived = 0;*/}25 Service(char *name) : DimInfo(name,(char *)"--") {/*nReceived = 0;*/} 26 26 }; 27 27 … … 34 34 char *name, *format, *cltptr, *srvptr, clientName[128]; 35 35 36 if(argc){} 37 if(argc){} 36 38 br.getServices("BENCH_SERVICE_*"); 37 39 … … 47 49 } 48 50 dic_get_id(clientName); 49 if( cltptr = strchr(clientName,'@'))51 if((cltptr = strchr(clientName,'@'))) 50 52 cltptr++; 51 53 sleep(5); … … 55 57 56 58 mps = NReceived/TEST_TIME; 57 if( srvptr = strchr(ServerName,'@'))59 if((srvptr = strchr(ServerName,'@'))) 58 60 srvptr++; 59 61 cout << "Benchmark from "<< srvptr << " to " << cltptr << " :" << endl; -
trunk/FACT++/dim/src/benchmark/benchServer.cxx
r11071 r14936 4 4 #include <process.h> 5 5 #endif 6 #include <stdio.h> 6 7 7 8 int main(int argc, char *argv[]) … … 11 12 DimService **services; 12 13 14 if(argc){} 13 15 sscanf(argv[1],"%d",&msgSize); 14 16 sscanf(argv[2],"%d",&nServices); -
trunk/FACT++/dim/src/dim_thr.c
r14698 r14936 535 535 536 536 { 537 if(thread_ast){} 538 if(tag){} 537 539 printf("dim_start_thread: not available\n"); 538 540 return (dim_long)0; … … 541 543 int dim_stop_thread(dim_long t_id) 542 544 { 545 if(t_id){} 543 546 printf("dim_stop_thread: not available\n"); 544 547 return 0; -
trunk/FACT++/dim/src/dtq.c
r14575 r14936 844 844 sigprocmask(SIG_UNBLOCK, &set, &oset); 845 845 Dtq_sleeping = 1; 846 dtq_start_timer(secs, dtq_sleep_rout, ( void *)123);846 dtq_start_timer(secs, dtq_sleep_rout, (dim_long)123); 847 847 do{ 848 848 pause(); -
trunk/FACT++/dim/src/examples/test_server.c
r14698 r14936 126 126 id = dis_add_service( aux, "l:3;d:1;s:1;c:1;s:1;f:1;c:20", &t, sizeof(t), 127 127 (void *)0, 0 ); 128 if(id){} 128 129 sprintf(aux,"%s/TEST_CMD",argv[1]); 129 130 dis_add_cmnd(aux,"l:3;d:1;s:1;c:1;s:1;f:1;c:20",cmnd_rout, 0); … … 178 179 */ 179 180 sleep(10); 181 /* 180 182 dis_update_service(id); 183 */ 181 184 /* 182 185 for(i = 1; i <= 200; i++)
Note:
See TracChangeset
for help on using the changeset viewer.