Simple NTRIP caster/client/server example programs, support the NTRIP 1.0/2.0 protocol;
This assumes you are running Ubuntu 16.04
Clone and run the build:
$ git clone https://github.com/hanoi404/ntrip && cd ntrip
$ make all
First step, run the ntrip_caster_exam
:
$ ./ntrip_caster_exam
Second step, run the ntrip_server_exam
:
$ ./ntrip_server_exam
Third step, run the ntrip_client_exam
:
$ ./ntrip_client_exam
After the above steps are completed, you can see that the example data sent by NtripServer flows to NtripClient through NtripCaster.
Configure and compile:
$ mkdir build && cd build
$ cmake .. -DNTRIP_BUILD_EXAMPLES=ON
$ make
Output executable file:
build/examples/ntrip_caster_exam
build/examples/ntrip_client_exam
build/examples/ntrip_client_to_ntrip_server_exam
build/examples/ntrip_server_exam
Configure and compile:
$ mkdir build && cd build
$ cmake .. -G "Visual Studio 16" -DNTRIP_BUILD_EXAMPLES=ON
$ cmake --build . --config Release
Or open build/ntrip.sln
with VS2019 after the configuration is complete.
Output executable file:
build/examples/Release/ntrip_caster_exam.exe
build/examples/Release/ntrip_client_exam.exe
build/examples/Release/ntrip_client_to_ntrip_server_exam.exe
build/examples/Release/ntrip_server_exam.exe
Configure and compile:
$ mkdir build && cd build
$ cmake -G "Unix Makefiles" .. -DNTRIP_BUILD_EXAMPLES=ON
$ make
Output executable file:
build/examples/ntrip_caster_exam
build/examples/ntrip_client_exam
build/examples/ntrip_client_to_ntrip_server_exam
build/examples/ntrip_server_exam
for using NtripCaster, Add configuration option -DNTRIP_BUILD_CASTER=ON
.