[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] setting up multiple UDP connections with same prio and
From: |
Noam Weissman |
Subject: |
Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send |
Date: |
Wed, 9 Nov 2016 12:24:52 +0000 |
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:address@hidden On Behalf Of mgirke
Sent: Wednesday, November 09, 2016 11:10 AM
To: address@hidden
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
- [lwip-users] setting up multiple UDP connections with same prio and different data to send, mgirke, 2016/11/07
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, Noam Weissman, 2016/11/07
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, mgirke, 2016/11/09
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send,
Noam Weissman <=
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, mgirke, 2016/11/09
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, Noam Weissman, 2016/11/09
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, mgirke, 2016/11/10
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, Noam Weissman, 2016/11/10
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, mgirke, 2016/11/10
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, Simon Goldschmidt, 2016/11/10
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, Noam Weissman, 2016/11/10
- Re: [lwip-users] setting up multiple UDP connections with same prio and different data to send, Noam Weissman, 2016/11/09