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

benpicco notifications at github.com
Thu Sep 23 15:57:58 CEST 2021


@benpicco commented on this pull request.



> +USEMODULE += netdev_default
+
+USEMODULE += shell
+USEMODULE += shell_commands
+USEMODULE += ps
+USEMODULE += netutils
+
+ifeq (1, $(LWIP))
+  USEMODULE += ipv6_addr
+  USEMODULE += lwip_ipv6_autoconfig
+  USEMODULE += lwip_netdev
+else
+  USEMODULE += auto_init_gnrc_netif
+  USEMODULE += gnrc_ipv6_default
+  # we want to be able to open two sockets
+  CFLAGS += -DCONFIG_GNRC_TCP_RCV_BUFFERS=2

> Since you are already tweaking the gnrc_tcp configuration, you can enable the faster connection teardown algorithm via:
> `GNRC_TCP_EXPERIMENTAL_DYN_MSL_EN=1`

Now this is the TCP example everyone is expected to copy. So you are basically saying that this is the way GNRC TCP is supposed to behave - then why is it not the default? "Always make sure to wear kevlar boots when using GNRC TCP!" sounds less appealing to me when we could just disarm the foot guns. 

-- 
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#discussion_r714825177
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210923/904dae83/attachment.htm>


More information about the notifications mailing list