Changeset 6 in ntrip for trunk/ntripclient


Ignore:
Timestamp:
Jul 14, 2004, 12:09:22 PM (16 years ago)
Author:
stoecker
Message:

some minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripclient/NtripLinuxClient.c

    r4 r6  
    11/*
    22  Easy example NTRIP client for Linux/Unix.
     3  $Id$
    34  Copyright (C) 2003 by Dirk Stoecker <stoecker@epost.de>
    45   
     
    4344
    4445/* CVS revision and version */
    45 static char revisionstr[] = "$Revision: 1.2 $";
    46 static char datestr[]     = "$Date: 2003/10/21 07:25:01 $";
     46static char revisionstr[] = "$Revision: 1.3 $";
     47static char datestr[]     = "$Date: 2004/05/19 07:59:24 $";
    4748
    4849struct Args
     
    278279      {
    279280        fwrite(buf, numbytes, 1, stdout);
    280         if(!strncmp("ENDSOURCETABLE\r\n", buf+numbytes-16, 16))
    281           break;
     281        if(!strncmp("ENDSOURCETABLE\r\n", buf+numbytes-16, 16)) break;
     282        if(!strncmp("\r\nENDSOURCETABLE\r\n", buf+numbytes-18, 18)) break;
     283        if(!strncmp("\r\nENDSOURCETABLE\r", buf+numbytes-17, 17)){fprintf(stdout, "\n"); break;}
     284        if(!strncmp("\r\nENDSOURCETABLE", buf+numbytes-16, 16)){fprintf(stdout, "\r\n"); break;}
     285        if(!strncmp("\r\nENDSOURCETABL", buf+numbytes-15, 15)){fprintf(stdout, "E\r\n"); break;}
     286        if(!strncmp("\r\nENDSOURCETAB", buf+numbytes-14, 14)){fprintf(stdout, "LE\r\n"); break;}
     287        if(!strncmp("\r\nENDSOURCETA", buf+numbytes-13, 13)){fprintf(stdout, "BLE\r\n"); break;}
     288        if(!strncmp("\r\nENDSOURCET", buf+numbytes-12, 12)){fprintf(stdout, "ABLE\r\n"); break;}
     289        if(!strncmp("\r\nENDSOURCE", buf+numbytes-11, 11)){fprintf(stdout, "TABLE\r\n"); break;}
     290        if(!strncmp("\r\nENDSOURC", buf+numbytes-10, 10)){fprintf(stdout, "ETABLE\r\n"); break;}
     291        if(!strncmp("\r\nENDSOUR", buf+numbytes-9,   9)){fprintf(stdout, "CETABLE\r\n"); break;}
     292        if(!strncmp("\r\nENDSOU", buf+numbytes-8,   8)){fprintf(stdout, "RCETABLE\r\n"); break;}
     293        if(!strncmp("\r\nENDSO", buf+numbytes-7,   7)){fprintf(stdout, "URCETABLE\r\n"); break;}
     294        if(!strncmp("\r\nENDS", buf+numbytes-6,   6)){fprintf(stdout, "OURCETABLE\r\n"); break;}
     295        if(!strncmp("\r\nEND", buf+numbytes-5,   5)){fprintf(stdout, "SOURCETABLE\r\n"); break;}
     296        if(!strncmp("\r\nEN", buf+numbytes-4,   4)){fprintf(stdout, "DSOURCETABLE\r\n"); break;}
     297        if(!strncmp("\r\nE", buf+numbytes-3,   3)){fprintf(stdout, "NDSOURCETABLE\r\n"); break;}
    282298      }
    283299    }
Note: See TracChangeset for help on using the changeset viewer.