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:
commit
7991e71384
@ -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;
|
||||
* }
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user