Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

SDK • TCP echo server, "accept failed", reference good example needed

$
0
0
Hi,

I have spent plenty of hours trying to understand how example tcp echo server should be done using pico_w and cyw43 in C/C++ sdk. using "pico_cyw43_arch_lwip_threadsafe_background".
The one from pico-examples, after modification so it doesn't perform any test, but just listen certain port, accept the new connection ,and resend the same set of bytes back to the client - works, but each time, after 5 connections, accept() function starts returning failure at each new client connection attempt, and pico needs to be rebooted. This is 100% reproducible.

Can you please advise some simple and checked, boilerplate code that I could just blindly take and be sure that it JUST works ?

Appreciate any help. Thanks!

Statistics: Posted by marekdor — Sun Mar 02, 2025 5:56 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles