Page 1 of 1

LWIP example with multiple connections

Posted: Fri Apr 25, 2014 2:32 pm
by tombalabomba
Hi everyone!

Since I found no solution for my connection problem (http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=1690), I'm searching for illustrive example code to manage multiple connections using LWIP.
It would be nice if anyone could post such code.

Thanx!

Re: LWIP example with multiple connections

Posted: Wed Aug 13, 2014 12:23 pm
by Jeroen3
To no have a forum of dead topics.
I'm using a few of threads setup like this as tcp servers.
However, none of the threads will occupy a connection for a long time. But these two are confirmed to be able to connected simultaneously.

Just make sure there is enough memory for lwip and threads!
I was unable to run this example together with a few other lwip using threads enabled on my current project.
As soon as a TCP Multicast sender thread woke up, the system went into kernel panic.