Hi, How about simple old broadcast ?
Use one port for all, say 10000. You do not need several tasks. If you want to simplify things use one task with on socket for receive. And another task with another socket for sending. As you do not need to connect (UDP), simply change remote_ip_addr before sending if you want To send to a single end. If you want to send to all do a broadcast. BR, Noam. -----Original Message----- From: lwip-users [mailto:lwip-users-bounces+noam=silrd....@nongnu.org] On Behalf Of mgirke Sent: Wednesday, November 09, 2016 11:10 AM To: lwip-users@nongnu.org Subject: Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send Yes I know UDP ist connectionless. In the first place I wanted to use Multicast but since my WLAN module doesn´t support Multicast I need to find another way. What I am simplified doing is: conn = netconn_new(NETCONN_UDP); netconn_bind(conn, NULL, 10001); netconn_sendto(conn, buf, &remote_ip_addr, 10001); I can send data to multiple clients using multiple xtasks all using different ports (10001++). But in that way I am wasting bandwidth of my module since it is sending the same data X times instead of only once to multiple remote IP addresses. Any idea to avoid that? Thanks! -- View this message in context: http://lwip.100.n7.nabble.com/setting-up-multiple-UDP-connections-with-same-prio-and-different-data-to-send-tp27709p27731.html Sent from the lwip-users mailing list archive at Nabble.com. _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users