Network broadcast programming
Posted on 2003-03-05
We're creating an application to do distributed measurement of application performance that runs on workstations and that we can deploy on our network.
We'd like for these "watchdog" PCs to announce themselves to the nearest data consolidation server.
So, what we'd like to do is have them do some sort of a broadcast to find the servers that exist and are available to receive the data they're collecting.
How would one write a "broadcast" network request (like ARP or a DHCP client request) to announce themselves. We would know the "port" to use, but not the IP address to direct the message to (it should be anything that responds).
Any example code that does this would be even better.