[riot-notifications] [RIOT-OS/RIOT] examples: add TCP echo server & client from documentation (#16739)

benpicco notifications at github.com
Sun Aug 15 12:42:43 CEST 2021


### Contribution description

The [TCP sock API](https://doc.riot-os.org/group__net__sock__tcp.html) comes with an TCP echo example server & client.
But since this is never compiled and run it contained hidden bugs and is generally inconvenient as no Makefile is included.

Move this code to a proper example to it can be easily build & run for LWIP and GNRC TCP implementations.

### Testing procedure

<!--
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
-->


### Issues/PRs references

<!--
Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
-->

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16739

-- Commit Summary --

  * examples/tcp_echo_server: add TCP echo server
  * examples/tcp_echo_client: add TCP echo client

-- File Changes --

    A examples/tcp_echo_client/Makefile (33)
    A examples/tcp_echo_client/main.c (88)
    A examples/tcp_echo_server/Makefile (30)
    A examples/tcp_echo_server/main.c (126)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16739.patch
https://github.com/RIOT-OS/RIOT/pull/16739.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16739
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210815/88fc2656/attachment.htm>


More information about the notifications mailing list