Skip to content

fujiwara/tncl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Only supports TCP.
  • Only supports IPv4.
  • Does not accept multiple connections.

License

MIT

About

tncl is a tiny "nc -l" implementation.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published