Giter VIP home page Giter VIP logo

udphub's Introduction

UDP Forwarder, UDP 转发程序

This program is used to forward UDP packets between clients, the first 20 bytes of the packet header are
    NRL2  4 byte fixed "NRL2"
    XX    2 byte packet length
    CPUID 7 byte sending device serial number
    CPUID 7 byte receiving device serial number

本程序用来转发UDP数据包,数据包头前20个字节分别是
    NRL2  4 byte 固定的 "NRL2"
    XX    2 byte 包长度
    CPUID 7 byte 发送设备序列号
    CPUID 7 byte 接收设备序列号

HOW to use / 程序使用:

Download, compile, and execute programs

下载、编译、执行程序

# download
cd /usr/src/
git clone https://github.com/bg6cq/udphub.git

# compile (using gcc)
cd /usr/src/udphub
make

# run
/usr/src/udphub/udphub 

Note:

After the above program is started, it will receive and process data packets on UDP port 60050. If you need to use other ports, please specify -p xxxx, such as:

注:

以上程序启动后,会在UDP 60050 端口接收并处理数据包,如果需要使用其他端口,请用 -p xxxx 指定,如:

/usr/src/udphub/udphub -p 6000

Please note that the system's firewall must allow UDP port 60050 communication. Common system operations are as follows:

请注意系统的防火墙要允许 UDP 60050 端口通信,常见的系统操作如下:

CentOS 7

firewall-cmd --zone=public --permanent --add-port=60050/udp
firewall-cmd --reload

udphub's People

Contributors

bg6cq 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.