Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

ofxUDPManager: Sending messages to multiple IPs

$
0
0

It has been awhile since I did this, but here is the setup I used.

    udpConnection.Create();
    udpConnection.SetEnableBroadcast(true);
    udpConnection.SetReuseAddress(true);

    //224.0.0.1	All Systems on this Subnet
   //http://www.iana.org/assignments/multicast-addresses/multicast-addresses.xhtml
    udpConnection.ConnectMcast("224.0.0.1",11999);
    udpConnection.SetNonBlocking(true);

    //RX UDP
    udpConnectionRx.Create();
    udpConnection.SetReuseAddress(true);
	udpConnectionRx.BindMcast("224.0.0.1",11998); //incomming data on my port # ...
	udpConnectionRx.Bind(11998); //incomming data on my port # ...
	udpConnectionRx.SetNonBlocking(true);

As I said, it's been awhile, but I was able to send to multiple systems simultaneously with this code. the data I was sending was Address:rgba data for ~1000 LED's.

Good luck.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>