Forum Discussion
Altera_Forum
Honored Contributor
21 years agoLWIP 0.7.1 udp server
Hello @ all! I want to implement a simple UDP server with the NIOS2 and LWIP 0.7.1. But there are many problems coding that simple thing. I used some predefined code (found in other newsg...
Altera_Forum
Honored Contributor
21 years agoUDP is connectionLESS. In your case, you're only setting up your connection once.
Try placing udp_new(), udp_connect(), udp_send() and udp_remove() inside your loop, and it should behave as you'd like. Take a look at the DHCP code for a good idea of how a UDP connection should work, using the "raw" API. Cheers, - slacker