I have a scenario in which there are many servers .But all these servers are not active always and not more than one server will come to active state at a time..Whenever any of the server comes to active state ,it has to send a "active state " acknowledgment to the client,so that the client can communicate with the server.the client knows the ip address of all the servers.Is it possible to do what i have mentioned?? if so plz tel how.... I need the solution in C.the ip address of all the servers will be stored in a file in the client machine.Plz help me in this...

You can keep all servers ip addresses in a config file , you can then ping them one by one.