Giter Club home page Giter Club logo

ntripcaster's Introduction

ntripcaster

Ntrip broadcaster written in c and libev, support windows and linux.

For now, it can now transmit data between ntrip servers and ntrip clients, with source table and authorization support.

基于 libev 库实现的 C 语言版本 Ntripcaster 程序,支持 windows 和 linux。

目前可以支持 ntrip client 和 ntrip server 交换数据、动态源列表,以及密码验证(client 和 source 都支持)。

Build 构建

Need cmake and git and libev.

Windows only test on MinGW/MinGW-w64 toolchains.

需要 cmake 和 git 工具,以及系统安装了 libev (仅linux下需要,Debian/Ubuntu 可以使用 apt-get install libev-dev 安装)。

Windows 编译仅在 MinGW/MinGW-w64 测试过。

git clone https://github.com/tisyang/ntripcaster.git
cd ntripcaster
git submodule update --init

mkdir build
cd build
cmake ..
make

Pre-build binaries 预编译二进制文件

https://github.com/tisyang/ntripcaster/releases/

Usage 使用

程序使用 json 配置文件,默认配置文件名为 ntripcaster.json ,但可以通过命令行参数传入配置文件名: ntripcaster.exe xxx.json

配置文件项说明:

  • listen_addr: 字符串,程序将使用的 caster 服务地址,默认为 "0.0.0.0".
  • listen_port: 整数,程序将使用的 caster 服务端口,默认为 2101.
  • max_client: 整数,可接入的 ntrip client 客户端最大数量,0表示无限制。默认为0.
  • max_source: 整数,可接入的 ntrip source 客户端最大数量,0表示无限制。默认为0.
  • max_pending: 整数,允许的无标识客户端(即非client也非source)最大数量,0表示无限制。默认为10.
  • tokens_client: object,每一项的名称表示一个 client 密码对,以冒号分隔的用户名和密码。值表示的可以访问的挂载点名称。挂载点支持 * 符号,表示可以访问任何挂载点。
  • tokens_source: object, 每一项的名称表示一个 source 密码。值表示可以写入数据的挂载点名称。挂载点支持 * 符号,表示可以访问任何挂载点。

配置文件示例:

{
	"listen_addr":"0.0.0.0",
	"listen_port": 2101,
	"max_client": 0,
	"max_source": 0,
	"max_pending": 10,
	"tokens_client": {
		"test:test": "*"
	},
	"tokens_source": {
		"test": "*"
	}
}

Contact Me 联系

lazy.tinker#outlook.com

ntripcaster's People

Contributors

tisyang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.