<h3>Contribution description</h3>
<p>The <a href="https://doc.riot-os.org/group__net__sock__tcp.html" rel="nofollow">TCP sock API</a> comes with an TCP echo example server & client.<br>
But since this is never compiled and run it contained hidden bugs and is generally inconvenient as no Makefile is included.</p>
<p>Move this code to a proper example to it can be easily build & run for LWIP and GNRC TCP implementations.</p>
<h3>Testing procedure</h3>

<h3>Issues/PRs references</h3>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/16739'>https://github.com/RIOT-OS/RIOT/pull/16739</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>examples/tcp_echo_server: add TCP echo server</li>
  <li>examples/tcp_echo_client: add TCP echo client</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16739/files#diff-b6ffab43dca123621e95fe75a1330ea10852c7f0ae0745c2848aaf4a01254b1a">examples/tcp_echo_client/Makefile</a>
    (33)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16739/files#diff-b02aab1578c5dab45392307d703cdf3c27a1388991d1dab6c1c2f235bdd99725">examples/tcp_echo_client/main.c</a>
    (88)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16739/files#diff-2f8c2f97476d1066308363f30e50f6f6802768c54402e8a485720e7f4bcac8fe">examples/tcp_echo_server/Makefile</a>
    (30)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16739/files#diff-cd0db2c0d85a68c13204fc18ca7df1e65bd9986fda9c56b5f61ada362e030621">examples/tcp_echo_server/main.c</a>
    (126)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16739.patch'>https://github.com/RIOT-OS/RIOT/pull/16739.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16739.diff'>https://github.com/RIOT-OS/RIOT/pull/16739.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16739">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFOBBDYXSUWOHXS33DT46K2HANCNFSM5CGBRTGQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABE7WYEZC373A6ZGWDRQR2LT46K2HA5CNFSM5CGBRTG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OPB4AAA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16739",
"url": "https://github.com/RIOT-OS/RIOT/pull/16739",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>