How to UDP Broadcast with C in Linux?
Typically using the Berkeley sockets API, to sendto() one or more datagrams to a known broadcast-class IP address.
sendto()