acarsdec icon indicating copy to clipboard operation
acarsdec copied to clipboard

Multiple concurrent socket output.

Open DickvanNoort opened this issue 3 years ago • 3 comments

Besides the output to a logfile only one of the 3 (n, N and J) sockets outputs seems to be supported. If both -n and -j are selected only one output seems to be generated. No error message is shown. If only -n or -j is selected it works fine.
The switch code in acarsdec.c seems to fill 'netout' with only the last of the 3 possible parameters that appear in the parameter list.

My request is to support multiple concurrent socket output feeds so I can feed the data in both PP and in JSON format.

Cheers, Dick

DickvanNoort avatar Mar 08 '21 12:03 DickvanNoort

I would like to be able to send messages in JSON format to two different ACARS aggregator sites, so I'd like to request that acarsdec be able to support multiple -j options. Basically that acarsdec not be limited to only one -j, -n and/or -N output. Thank you.

jaymot123 avatar May 03 '22 05:05 jaymot123

I would like to be able to send messages in JSON format to two different ACARS aggregator sites, so I'd like to request that acarsdec be able to support multiple -j options. Basically that acarsdec not be limited to only one -j, -n and/or -N output.

If the format you want to send to both destinations is the same (like both JSON) you can use an UDP repeater like this one:

https://github.com/UnionPacific/udp-repeater

Only if the format is not the same the program has to be changed.

Cheers, Dick

DickvanNoort avatar May 03 '22 05:05 DickvanNoort

Thank you, DickvanNoort. That should do exactly what I'll want when the time comes to feed the second ACARS aggregation site.

jaymot123 avatar May 04 '22 03:05 jaymot123