this is my first posting here. I have a project using an AVR Xmega (Arduino ++) and I’ve ported the web server to this CPU. It is in a freeRTOS environment and is the first web server for the Xmega running smoothly opposite to all Arduino versions for WIZ550. Currently I only have the web server running. I do not understand how the access to the TX_BUF is synchronized between DHCP and web server. I saw that there is a socket reserved for DHCP and some for web server. So the sockets are separate but how the buffers for both services are separated?
As second: In freeRTOS I have one thread running the web server and a second thread running DHCP. Does it make sense to keep both services separate or is it better to have both in one thread as in main.c?