Changeset 550 in ntrip
- Timestamp:
- Oct 26, 2007, 4:56:47 PM (17 years ago)
- Location:
- trunk/ntripclient
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripclient/README
r547 r550 72 72 73 73 ntripclient -s server -u user ... 74 - d --datathe requested data set or criteria for sourcetable filtering75 -s --server the server name or address76 -p --password the login password77 -r --port the server port number (default 2101)78 -u --user the user name79 -n --nmea NMEA string for sending to server80 -b --bitrate output bitrate81 -S --proxyhost proxy name or address82 -R --proxyport proxy port, optional (default 2101)83 -M --mode mode for data request74 -m --mountpoint the requested data set or criteria for sourcetable filtering 75 -s --server the server name or address 76 -p --password the login password 77 -r --port the server port number (default 2101) 78 -u --user the user name 79 -n --nmea NMEA string for sending to server 80 -b --bitrate output bitrate 81 -S --proxyhost proxy name or address 82 -R --proxyport proxy port, optional (default 2101) 83 -M --mode mode for data request 84 84 Valid modes are: 85 85 1, h, http NTRIP Version 2.0 Caster in TCP/IP mode … … 89 89 90 90 or using an URL: 91 ntripclient ntrip: data[/user[:password]][@[server][:port][@proxyhost[:proxyport]]][;nmea]91 ntripclient ntrip:mountpoint[/user[:password]][@[server][:port][@proxyhost[:proxyport]]][;nmea] 92 92 93 93 The argument '-h' will cause a HELP on the screen. … … 97 97 Sourcetable filtering 98 98 ---------------------- 99 A missing argument '- d' leads to the output of the complete broadcaster99 A missing argument '-m' leads to the output of the complete broadcaster 100 100 sourcetable. This may comprise hundreds of lines in case of large 101 101 networks. To limit the output, the sourcetable contents can be filtered 102 through entering the argument '- d' followed by a sequence of query strings,102 through entering the argument '-m' followed by a sequence of query strings, 103 103 one for each sourcetable data field. Only those sourcetable lines are 104 104 returned from the broadcaster whoes data fields match the corresponding … … 135 135 136 136 - Searching in a sourcetable for streams in Germany would require 137 entering the '- d' argument followed by137 entering the '-m' argument followed by 138 138 the query string: 139 139 ?STR;;;;;;DEU 140 140 141 141 - Searching in a sourcetable for free streams fom the EUREF network and 142 coming from the Frankfurt area would require entering the '- d' argument142 coming from the Frankfurt area would require entering the '-m' argument 143 143 followed by the query string: 144 144 ?STR;;;;;;;EUREF;;=>50&<=51;=>8.1&<8.6;;;;;N -
trunk/ntripclient/ntripclient.c
r501 r550 1 1 /* 2 2 Easy example NTRIP client for POSIX. 3 $Id: ntripclient.c,v 1.3 3 2007/10/05 15:40:24 stuerzeExp $3 $Id: ntripclient.c,v 1.34 2007/10/08 08:03:19 stoecker Exp $ 4 4 Copyright (C) 2003-2005 by Dirk Stoecker <soft@dstoecker.de> 5 5 … … 45 45 46 46 /* CVS revision and version */ 47 static char revisionstr[] = "$Revision: 1.3 3$";48 static char datestr[] = "$Date: 2007/10/0 5 15:40:24$";47 static char revisionstr[] = "$Revision: 1.34 $"; 48 static char datestr[] = "$Date: 2007/10/08 08:03:19 $"; 49 49 50 50 enum MODE { HTTP = 1, RTSP = 2, NTRIP1 = 3, AUTO = 4, END }; … … 74 74 { "bitrate", no_argument, 0, 'b'}, 75 75 { "data", required_argument, 0, 'd'}, 76 { "mountpoint", required_argument, 0, 'm'}, 76 77 { "server", required_argument, 0, 's'}, 77 78 { "password", required_argument, 0, 'p'}, … … 85 86 {0,0,0,0}}; 86 87 #endif 87 #define ARGOPT "-d: bhp:r:s:u:n:S:R:M:"88 #define ARGOPT "-d:m:bhp:r:s:u:n:S:R:M:" 88 89 89 90 #ifdef __GNUC__ … … 294 295 case 'p': args->password = optarg; break; 295 296 case 'd': 297 case 'm': 296 298 if(optarg && *optarg == '?') 297 299 args->data = encodeurl(optarg); … … 353 355 { 354 356 fprintf(stderr, "Version %s (%s) GPL" COMPILEDATE "\nUsage:\n%s -s server -u user ...\n" 355 " - d " LONG_OPT("--data ") "the requested data set\n"356 " -s " LONG_OPT("--server ") "the server name or address\n"357 " -p " LONG_OPT("--password ") "the login password\n"358 " -r " LONG_OPT("--port ") "the server port number (default 2101)\n"359 " -u " LONG_OPT("--user ") "the user name\n"360 " -n " LONG_OPT("--nmea ") "NMEA string for sending to server\n"361 " -b " LONG_OPT("--bitrate ") "output bitrate\n"362 " -S " LONG_OPT("--proxyhost ") "proxy name or address\n"363 " -R " LONG_OPT("--proxyport ") "proxy port, optional (default 2101)\n"364 " -M " LONG_OPT("--mode ") "mode for data request\n"357 " -m " LONG_OPT("--mountpoint ") "the requested data set or sourcetable filtering criteria\n" 358 " -s " LONG_OPT("--server ") "the server name or address\n" 359 " -p " LONG_OPT("--password ") "the login password\n" 360 " -r " LONG_OPT("--port ") "the server port number (default 2101)\n" 361 " -u " LONG_OPT("--user ") "the user name\n" 362 " -n " LONG_OPT("--nmea ") "NMEA string for sending to server\n" 363 " -b " LONG_OPT("--bitrate ") "output bitrate\n" 364 " -S " LONG_OPT("--proxyhost ") "proxy name or address\n" 365 " -R " LONG_OPT("--proxyport ") "proxy port, optional (default 2101)\n" 366 " -M " LONG_OPT("--mode ") "mode for data request\n" 365 367 " Valid modes are:\n" 366 368 " 1, h, http NTRIP Version 2.0 Caster in TCP/IP mode\n" … … 368 370 " 3, n, ntrip1 NTRIP Version 1.0 Caster\n" 369 371 " 4, a, auto automatic detection (default)\n" 370 "or using an URL:\n%s ntrip: data[/user[:password]][@[server][:port][@proxyhost[:proxyport]]][;nmea]\n"372 "or using an URL:\n%s ntrip:mountpoint[/user[:password]][@[server][:port][@proxyhost[:proxyport]]][;nmea]\n" 371 373 , revisionstr, datestr, argv[0], argv[0]); 372 374 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.