Giter Site home page Giter Site logo

tnc-server's People

Contributors

chrissnell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tnc-server's Issues

Feature Request: Add support for TCP KISS Target

Greetings,

Would it be possible to add support for a KISS over TCP server (such as Direwolf and/or UZ7HO's soundmodem)? While it is possible to insert socat in between, it does not cope well when the KISS over TCP system restarts. An example of the link could be:

socat -d -d -d PTY,raw,echo=0,link=/tmp/direwolftnc TCP4:192.168.1.100:8001,reuseaddr &

This creates a "dummy" serial port at /tmp/direwolftnc and then establishes an outbound TCP connection to 192.168.1.100 on port 8001

After this is up and running, you can then launch tnc-server with:

./tnc-server --port=/tmp/direwolftnc --listen=0.0.0.0:12345

At this point we now have our tnc-server listening on 12345, forwarding it's data to /tmp/direwolftnc which is a link via socat to the actual KISS over TCP server at 192.168.1.100:8001

-> 0.0.0.0:12345 [tnc-server] -> /tmp/direwolftnc -> socat -> 192.168.1.100:8001 [Direwolf]

Functionally all this works, the part which is undesirable is what happens if there is any hiccup in the above chain. If direwolf is restarted, socat dies and then tnc-server floods it's console with:

2018/12/28 12:34:43 Error reading bytes from serial: EOF
2018/12/28 12:34:43 Error reading bytes from serial: EOF
2018/12/28 12:34:43 Error reading bytes from serial: EOF
2018/12/28 12:34:43 Error reading bytes from serial: EOF

Even if one wraps socat in a while loop to automatically respawn, tnc-server does not seem to recover nor exit (allowing a loop to restart it).

Ideally it would be nice if we could specify an IP address and port number for TCP KISS connectivity that could gracefully cope with an interruption (acknowledging the TCP connection failed and periodically retrying to establish it). If that is not feasible, have the option for tnc-server exit when there is an error reading bytes from serial, allowing the creation of a while loop to keep things running.

Thank you for this great software, the sharing of TNCs is a great asset for many services and interest.

73!

Binaries need to be recompiled for macOS Sierra/High Sierra

Just a heads up that the binaries for macOS need to be recompiled, the current ones will crash at runtime due to changes in Sierra/High Sierra. If you encounter this, the build for this is super painless and at the bottom of the README.md.

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.