1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #16721 from benpicco/sock/tcp-fix_doc

sock: tcp: fix Echo Server example
This commit is contained in:
benpicco 2021-08-10 14:41:42 +02:00 committed by GitHub
commit 7991e71384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@
* while (1) {
* sock_tcp_t *sock;
*
* if (sock_tcp_accept(&queue, &sock) < 0) {
* if (sock_tcp_accept(&queue, &sock, SOCK_NO_TIMEOUT) < 0) {
* puts("Error accepting new sock");
* }
* else {
@ -76,7 +76,7 @@
* sock_tcp_disconnect(sock);
* }
* }
* sock_tcp_stop_listen(queue);
* sock_tcp_stop_listen(&queue);
* return 0;
* }
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~