Home

Awesome

tncl

tncl is a tiny "nc -l" implementation in Zig.

Usage

TCP server receiving data

$ tncl 1234 > /tmp/output

tncl will listen on port 1234 and write the received data to /tmp/output.

When the client disconnects, tncl will exit.

TCP server sending data

$ cat /tmp/input | tncl 1234

or

$ tncl 1234 < /tmp/input

tncl will listen on port 1234 and send the data from /tmp/input to the client.

When the all data is sent, tncl will close the connection and exit.

Notes

tncl exits with status 0 when the client disconnects OR the stdin is closed.

Limitations

License

MIT