Changeset 49 in ntrip for trunk/ntripserver
- Timestamp:
- Aug 3, 2006, 5:10:33 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/NtripLinuxServer.c
r48 r49 41 41 */ 42 42 43 /* $Id $43 /* $Id: NtripLinuxServer.c,v 1.20 2006/07/27 14:07:15 stoecker Exp $ 44 44 * Changes - Version 0.7 45 45 * Sep 22 2003 Steffen Tschirpke <St.Tschirpke@actina.de> … … 119 119 120 120 enum MODE { SERIAL = 1, TCPSOCKET = 2, INFILE = 3, SISNET = 4, UDPSOCKET = 5, 121 CASTER = 6 };121 CASTER = 6, LAST}; 122 122 123 123 #define VERSION "NTRIP NtripServerLinux/0.17" … … 220 220 { 221 221 case 'M': 222 if(!strcmp(optarg, "serial")) mode = 1;223 else if(!strcmp(optarg, "tcpsocket")) mode = 2;224 else if(!strcmp(optarg, "file")) mode = 3;225 else if(!strcmp(optarg, "sisnet")) mode = 4;226 else if(!strcmp(optarg, "udpsocket")) mode = 5;227 else if(!strcmp(optarg, "caster")) mode = 6;222 if(!strcmp(optarg, "serial")) mode = SERIAL; 223 else if(!strcmp(optarg, "tcpsocket")) mode = TCPSOCKET; 224 else if(!strcmp(optarg, "file")) mode = INFILE; 225 else if(!strcmp(optarg, "sisnet")) mode = SISNET; 226 else if(!strcmp(optarg, "udpsocket")) mode = UDPSOCKET; 227 else if(!strcmp(optarg, "caster")) mode = CASTER; 228 228 else mode = atoi(optarg); 229 if((mode == 0) || (mode > 6))229 if((mode == 0) || (mode >= LAST)) 230 230 { 231 231 fprintf(stderr, "ERROR: can't convert %s to a valid mode\n", optarg);
Note:
See TracChangeset
for help on using the changeset viewer.