Changeset 6 in ntrip


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

some minor fixes

Location:
trunk
Files:
2 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    }
  • trunk/ntripserver/NtripLinuxServer.c

    r5 r6  
    4141 */
    4242
    43 /*
     43/* $Id$
    4444 * Changes -  Version 0.7
    4545 * Thu Sep 22 08:10:45  2003    actina AG <http://www.actina.de>
     
    6767#include "NtripServerLinux.h"
    6868
    69 #define VERSION "NTRIP NtripServerLinux0.8"
     69#define VERSION "NTRIP NtripServerLinux/0.8"
    7070
    7171#define SIMULATE  0
     
    113113int main (int argc, char ** argv)
    114114{
    115   u_char       * ttyin = ttyport,  buf[BUFSZ];
     115  u_char       * ttyin = ttyport;
    116116  char         * logfilepath = NULL;
    117   FILE         * logfile = NULL, *fp = NULL;
     117  FILE         * fp = NULL;
    118118  int            c, gpsfd = -1;
    119119  int            size = 2048;           //for setting send buffer size
     
    560560  fprintf (stderr, "    -i input_device, sets name of serial input device\n");
    561561  fprintf (stderr, "       default/current value is %s\n", ttyport);
    562   fprintf (stderr, "       (normally a symbolic link to /dev/tty??)\n");
     562  fprintf (stderr, "       (normally a symbolic link to /dev/tty\?\?)\n");
    563563  fprintf (stderr, "  Mode = tcpsocket:\n");
    564564  fprintf (stderr, "    -P receiver port (default: 1025)\n");
Note: See TracChangeset for help on using the changeset viewer.