A simple TCP client that receives binary data and outputs it to stdout.
Author: Edson Pereira, PY2SDR
Connects to a TCP server, receives binary data, and writes it to stdout. Automatically reconnects if the connection drops.
git clone https://github.com/py2sdr/tcprecv
cd tcprecv
gcc -Wall -O2 -o tcprecv tcprecv.csudo cp tcprecv /usr/local/bintcprecv ip porttcprecv 192.168.1.100 5000 > output.bintcprecv 192.168.1.100 5000 | your_program# Connect to nmux on remote SDR server
tcprecv 192.168.1.50 5000 | baudline -stdin -format s16 -channels 1 -samplerate 48000 -run- Linux
- GCC compiler
- Port must be between 1024-65535
- Press Ctrl+C to stop
- Data goes to stdout, status messages go to stderr
- IPv4 only
73 de PY2SDR 📻