I am using FreeRTOS 7.0.1 on a Sam7X512 and upgraded the contributed port lwIP 1.3.0 to 1.3.2.
The "lwIP Embedded Webserver Demo" is what I took as a starting point. I removed the webserver functionality, now I have a task that
checks for incoming data (nonblocking)
checks a Queue for outgoing data (nonblocking)
wait 1 ms (to prevent 100% cpu usage)
repeat :-)
This works pretty well, I get around 1400 kbyte/s RX and TX. Now to my question: Is it possible/difficult/easy to transform this functionality to accept multiple connections on the same port ? At the moment I am using the netconn API, so I guess I have to switch to the Socket API ?
I read through Richards thread on his "FreeRTOS/lwip Win32 simulator" project and it sounds as if it is quite difficult to have multiple connections in a multithreaded environment. Unfortunately I could not find other helpful topics or contributed examples.
I am rather new to FreeRTOS and lwIP, so please excuse me if I am missing something obvious :-)
Please give me some comments / suggestions / tips / pushes into the right direction.