Changeset 6 in ntrip
- Timestamp:
- Jul 14, 2004, 12:09:22 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripclient/NtripLinuxClient.c
r4 r6 1 1 /* 2 2 Easy example NTRIP client for Linux/Unix. 3 $Id$ 3 4 Copyright (C) 2003 by Dirk Stoecker <stoecker@epost.de> 4 5 … … 43 44 44 45 /* CVS revision and version */ 45 static char revisionstr[] = "$Revision: 1. 2$";46 static char datestr[] = "$Date: 200 3/10/21 07:25:01$";46 static char revisionstr[] = "$Revision: 1.3 $"; 47 static char datestr[] = "$Date: 2004/05/19 07:59:24 $"; 47 48 48 49 struct Args … … 278 279 { 279 280 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;} 282 298 } 283 299 } -
trunk/ntripserver/NtripLinuxServer.c
r5 r6 41 41 */ 42 42 43 /* 43 /* $Id$ 44 44 * Changes - Version 0.7 45 45 * Thu Sep 22 08:10:45 2003 actina AG <http://www.actina.de> … … 67 67 #include "NtripServerLinux.h" 68 68 69 #define VERSION "NTRIP NtripServerLinux 0.8"69 #define VERSION "NTRIP NtripServerLinux/0.8" 70 70 71 71 #define SIMULATE 0 … … 113 113 int main (int argc, char ** argv) 114 114 { 115 u_char * ttyin = ttyport , buf[BUFSZ];115 u_char * ttyin = ttyport; 116 116 char * logfilepath = NULL; 117 FILE * logfile = NULL, *fp = NULL;117 FILE * fp = NULL; 118 118 int c, gpsfd = -1; 119 119 int size = 2048; //for setting send buffer size … … 560 560 fprintf (stderr, " -i input_device, sets name of serial input device\n"); 561 561 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"); 563 563 fprintf (stderr, " Mode = tcpsocket:\n"); 564 564 fprintf (stderr, " -P receiver port (default: 1025)\n");
Note:
See TracChangeset
for help on using the changeset viewer.