Changeset 12757 for trunk/FACT++/dim/src/examples/test_client.c
- Timestamp:
- 01/24/12 13:41:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/examples/test_client.c
r12585 r12757 25 25 26 26 TT t; 27 /* 28 void big_rout( tag, buf, size ) 29 int *buf; 30 int *tag, *size; 27 28 void big_rout( int *tag, int *buf, int *size ) 31 29 { 32 30 33 printf("Received %d for TestMem\n", *buf); 31 if(size){} 32 printf("Received %d for TestMem_%d\n", *buf, *tag); 34 33 } 35 */ 34 36 35 37 36 void got_servers( int *tag, char *list, int *size) … … 57 56 void version_rout( int *tag, int *buf, int *size) 58 57 { 59 printf("Received VERSION %x, %d\n", buf, *size); 58 if(tag){} 59 printf("Received VERSION %x, %d\n", (long)buf, *size); 60 60 } 61 61 … … 64 64 int *tag, *size; 65 65 { 66 /* 66 67 char *format; 67 /*68 68 format = dic_get_format(0); 69 69 printf("Received format = %s %08x, %d\n",format, format, *size); … … 122 122 printf("%s\n",aux); 123 123 strcpy(client_str,argv[1]); 124 124 125 for(i = 0; i< 10; i++) 125 126 { … … 136 137 dic_info_service( str, MONITORED, 0, 0, 0, version_rout, 0, 137 138 NULL, 0 ); 138 /* 139 sprintf(aux,"%s/TestMem",argv[2]); 140 dic_info_service( aux, MONITORED, 0, 0, 0, big_rout, 0, 139 /* 140 for(i = 0; i < 20; i++) 141 { 142 sprintf(aux,"%s/TestMem_%d",argv[2], i); 143 dic_info_service( aux, MONITORED, 0, 0, 0, big_rout, i, 141 144 &no_link, 4 ); 145 } 142 146 */ 143 147 /*
Note:
See TracChangeset
for help on using the changeset viewer.