cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl to determine active internet feed without connection?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 28 Oct 2009 13:35:17 +0100 (CET)

On Tue, 27 Oct 2009, Max L. Eidswick wrote:

> Simple question: I would like to use CURL to determine if the local machine
> is actively connected to the internet without creating traffic. I am
> prototyping on Win32.
>
> Is there a libcurl way of finding out if the Windows machine is actively
> connected to the internet without probing a site?

That's not possible. "internet connected" is not a simple ON/OFF switch
somewhere in the computer.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-28