I want a UDP echo server to get packets, and reply exactly what it has received. How can I simply do this using netcat or socat? It should stay alive forever and handle packets coming from several hosts.
|
| |||
feedback
|
|
Another netcat-like tool is the nmap version,
-e means it executes /bin/cat (to echo back what you type) | |||
|
feedback
|
|
You can write a C program that forks
Then in an endless loop the parent reads from stdin and writes in stdout whatever the parent reads. | |||||||
feedback
|
|
I used | |||
|
feedback
|