https://github.com/thk2b/necho
Network echo
https://github.com/thk2b/necho
Last synced: about 1 year ago
JSON representation
Network echo
- Host: GitHub
- URL: https://github.com/thk2b/necho
- Owner: thk2b
- Created: 2018-12-31T17:50:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-01T02:46:27.000Z (over 7 years ago)
- Last Synced: 2024-10-11T14:01:20.687Z (over 1 year ago)
- Language: C
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# necho
network-echo: a simple client-server application to put sockets into practice.
The client sends its standard input to the server.
The server reads from each client and writes to standard output.
# usage
Build:
```
make
```
Run the server:
```
./server [ port=8080 ]
```
Run the client:
```
./client [ port=8080 [ ip=0.0.0.0 ]]
cat /dev/urandom | head -c 100 | ./client 8080 0.0.0.0
```