https://github.com/chux0519/echo
https://github.com/chux0519/echo
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chux0519/echo
- Owner: chux0519
- Created: 2021-02-19T02:56:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-22T14:33:39.000Z (over 5 years ago)
- Last Synced: 2025-07-09T13:08:49.340Z (11 months ago)
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Echo server example using libevent.
Both UDP and TCP are supported.
## build
> gcc ./echo.c -o echo -levent -g
## usage
> echo -p 8080
then use netcat(openbsd version) to test it
for tcp
> nc localhost 8080
for udp
> nc -u localhost 8080