1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/sock_tcp_echo/README.md
2024-11-12 00:22:38 +01:00

599 B

TCP Echo Server / Client

This is a simple TCP echo server / client that uses the SOCK API. It can make use of both the GNRC and the LWIP network stack. The default is GNRC, to chose LWIP set LWIP=1 when compiling the example.

Echo Server

The echo server will echo back any data that it receives. To start the echo server on port 12345 run

listen 12345

Echo Client

The echo client will connect to a server, send some data and wait for the reply. To send data with the echo client to a server running on 2001:db8::1 run

send 2001:db8::1 12345 some data