I am working on some Master/Slave functionality using the Cinder-Asio block that requires TCP as well as some UDP broadcast. TCP is working well (thanks to help from @ryanbartley), but I am having some issues with UDP.
I seem to be broadcasting UDP messages ok. I can detect them using wiresharkhttps://www.wireshark.org/ and have enabled broadcasting with
sessionUdp->getSocket()->set_option(asio::socket_base::broadcast(true));. This has worked for me before to send packets to some hardware. However, even though I can connect a UDP client to the port (on the same machine) it never receives anything. My experience with receiving broadcasts in past is just with OSC libraries and has not required specifying an IP like I need to here. Should I be able to connect to localhost and receive any broadcast messages?
Any help appreciated.
EDIT - this also did not work with the address "0.0.0.0", which I take it is what I should be using for the listener. I should probably look at multicasting instead broadcasting for this application but keen to get one of these options working.