There are several computers in the local network, some of them are servers. When you start a new server, it performs a broadcast to check how many servers are on the network with a call sign like it, and displays the number of these servers on the console.
The call sign is the usual term.
How to implement it without threads and the most simple?
recvfrom suspends the program while waiting for a response, but I don’t know how many servers are on the network and how many I have to execute these recvs.