libntrip-swift: A modern, high-performance Swift implementation of the NTRIP (Networked Transport of RTCM via Internet Protocol) protocol.
libntrip-swift is a Swift 6 port and evolution of the original Orientable AI internal project. It provides a type-safe, asynchronous framework for streaming Global Navigation Satellite System (GNSS) correction data.
- NTRIP Client: Connect to Casters to receive real-time RTCM streams.
- NTRIP Server: Push GNSS data from local sources (files, stdin) to Casters.
- RTCM3 Parser: High-efficiency bit-level parsing for RTCM3 messages (Types 1005, 1006, 1019, etc.).
- Modern Swift Architecture:
- Structured Concurrency: Native
async/awaitandAsyncStreamsupport. - Cross-Platform: Designed for Linux and macOS using portable POSIX networking.
- Type Safety: Robust error handling and type-safe configuration via
Codable.
- Structured Concurrency: Native
- CLI Tools: Ready-to-use
ntrip-clientandntrip-serverexecutables.
Sources/NTRIP: Core protocol implementation, asynchronous sockets, and shared utilities.Sources/RTCM3: Message synchronization logic, CRC24 validation, and bit-level field extraction.Sources/NTRIPClient: Command-line interface for the NTRIP client.Sources/NTRIPServer: Command-line interface for the NTRIP server.
swift build.build/debug/ntrip-client --host euref-ip.net --mountpoint BRUX00BEL0 --parseswift test- Installation & Usage: See INSTALL.md for detailed setup and execution instructions.
- API Reference: Generate local documentation with
swift package generate-documentation.
Refer to LICENSE.md for licensing details. All Right Reserved by Shu Wang, shuwang1@outlook.com