Send UDP broadcast message using wxWidgets

Using wxWidgets 2.8.9 on Mac / Win / Linux, how do I send a UDP broadcast message? The reception works using wxDatagramSocket, but it doesn't seem obvious to me how I would send the SEND UDP broadcast message.

+1


source to share


1 answer


Basically, just using wxSOCKET_BROADCAST in the socket flags should work (this will cause SO_BROADCAST to be set for the socket).



+2


source







All Articles