An Echo Server is a simple network server that sends back to the client whatever data it receives. It is often used as a basic example to test networking functionality.
- Odin Compiler (latest stable version).
- A terminal or command prompt to run the application.
- Run the server:
odin run server
- Run one or more clients:
odin run client
- Or use
telnet
:telnet 127.0.0.1 8080
To terminate the client send Ctrl-D
or Ctrl-C
or an empty line pressing Enter (\r\n
, \n
).