I'm developing a windows console application (C-language) which continuously communicates with network. Application should start the database services immediately after the network connection has established.
Using socket, pipe or curl etc., seems not to be good approaches. We can use curl to check network reachability but it does not seems correct way.
So, is there any way to check if network is reachable or not in 'C'?