Thursday, September 21, 2023

Handling temporary loss of network link in lwIP


full image - Repost: Handling temporary loss of network link in lwIP (from Reddit.com, Handling temporary loss of network link in lwIP)
For such a commonly-used library, lwIP seems to be really lacking in the documentation and support department. The mailing list is a wasteland - maybe one question a month gets answered, and rarely with more than one sentence.My biggest question at the moment is about how to deal with a temporarily dropped link. If I pull the network cable for just a second, it seems that all of the existing TCBs become invalid. As soon as my code tries to use udp_sendto(), I get a routing error. Same for an existing TCP socket.How are you supposed to handle this? I don't see any callbacks from the stack indicating a change of status for each socket. Are you supposed to keep track of all of your sockets at the application level and close and reopen them?Where is this documented? If it's not, does it follow some existing convention?Thanks!


Mining:
Bitcoin, Cryptotab browser - Pi Network cloud PHONE MINING
Fone, cloud PHONE MINING cod. dhvd1dkx - Mintme, PC PHONE MINING


Exchanges:
Coinbase.com - Stex.com - Probit.com


Donations:
Done crypto



Comments System

Disqus Shortname

Disqus Shortname

designcart
Powered by Blogger.