summaryrefslogtreecommitdiff
path: root/Userland/nc.cpp
AgeCommit message (Collapse)Author
2020-07-28Userland: Fix nc by not memset()'ing the input address char*Linus Groh
We were accidentally calling memset() on "addr" (the input char*), not "dst_addr" (the target struct sockaddr_in), which was causing a simple "nc localhost 8000" to crash. Fixes #2908.
2020-05-30Userland: Port nc(1) to use Core::ArgsParserSergey Bugaev
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-08-10Userland: Make sure sockaddr_len is initialised correctly in ncConrad Pankoff
2019-08-08Userland: Implement -l, -v, -N, -s, and -p for netcatConrad Pankoff
2019-08-08Userland: Implement nc commandConrad Pankoff
This is a very simple version of the nc (netcat) command. It only supports outgoing TCP connections, and has no options aside from the target host and port.