cURL / Mailing Lists / curl-library / Single Mail


Re: How to chack for network is reachable

From: Daniel Stenberg <>
Date: Sun, 25 Jan 2009 13:20:07 +0100 (CET)

On Sun, 25 Jan 2009, Ranu Gontia wrote:

> How to check for network reach ability using LibCurl?

Technially, there is no such as thing as a univeral "network reach ability" so
libcurl cannot test for it.

You could use OS primitives to figure out if there are available network
interfaces, if known hosts respond to pings or if you can download stuff from
somewhere. The last point can be done with libcurl.

Received on 2009-01-25