Ignore:
Timestamp:
01/24/12 13:41:57 (13 years ago)
Author:
tbretz
Message:
Switched to v19r27
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/src/examples/test_client.c

    r12585 r12757  
    2525
    2626TT t;
    27 /*
    28 void big_rout( tag, buf, size )
    29 int *buf;
    30 int *tag, *size;
     27
     28void big_rout( int *tag, int *buf, int *size )
    3129{
    3230
    33         printf("Received %d for TestMem\n", *buf);
     31        if(size){}
     32        printf("Received %d for TestMem_%d\n", *buf, *tag);
    3433}
    35 */
     34
    3635
    3736void got_servers( int *tag, char *list, int *size)
     
    5756void version_rout( int *tag, int *buf, int *size)
    5857{
    59         printf("Received VERSION %x, %d\n", buf, *size);
     58        if(tag){}
     59        printf("Received VERSION %x, %d\n", (long)buf, *size);
    6060}
    6161
     
    6464int *tag, *size;
    6565{
     66/*
    6667        char *format;
    67 /*
    6868        format = dic_get_format(0);
    6969        printf("Received format = %s %08x, %d\n",format, format, *size);
     
    122122        printf("%s\n",aux);
    123123        strcpy(client_str,argv[1]);
     124
    124125        for(i = 0; i< 10; i++)
    125126        {
     
    136137        dic_info_service( str, MONITORED, 0, 0, 0, version_rout, 0,
    137138                          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,
    141144                          &no_link, 4 );
     145        }
    142146*/
    143147/*
Note: See TracChangeset for help on using the changeset viewer.