#ring-buffer #replace #require #data #port #directory #ringtostdout

bin+lib nscldaq_ringtostdout

ringtostdout replacement in RUST that does not require an NSCLDAQ installation

6 releases

0.2.0 Apr 4, 2023
0.1.5 Sep 8, 2022

#62 in #require

Download history 22/week @ 2024-02-12 4/week @ 2024-02-26 5/week @ 2024-03-11 108/week @ 2024-04-01

113 downloads per month

GPL-3.0 license

19KB
319 lines

ringtostdout program

This program attaches as a consumer to a ringbuffer and takes all the data that buffer has to offer and shoots it out stdout.

Usage

ringtostdout option...

Where the options are:

  • --directory - the directory with the ringbuffers. If not present on the command line defaults to /dev/shm (suitable for linux)
  • --ring - name of the ring buffer file in that directory we'll prepend the directory path.
  • --port - Portmanager (not ringmaster) listen port, if not present, defaults to 30000 the standard.
  • --comment - If present, the supplied text is used to construct a header visible in system displays of processes. The ringmaster uses this to indicate where the ringtostdout programs it spawns off will be sending its data (ringmaster will have arranged for the stdout of ringtostdout to be a socket to a client (which will get spawned off to be an stdintoring)).

Dependencies

~1.5MB
~14K SLoC