LWIP example with multiple connections

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
tombalabomba
Posts: 4
Joined: Thu Jan 23, 2014 7:56 am

LWIP example with multiple connections

Post 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!
Jeroen3
Posts: 35
Joined: Wed Apr 02, 2014 10:14 am

Re: LWIP example with multiple connections

Post 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.
Attachments
lwip multi listener.zip
(15.62 KiB) Downloaded 438 times
Post Reply