cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to ping IP using libcurl?

From: Maxime Larocque <maxmtl2002_at_yahoo.ca>
Date: Fri, 09 Nov 2012 14:19:22 -0500

Hi Jalindar,

Le 09/11/2012 08:51, JALINDAR a écrit :
> I want to ping IP addresses and grab the respond to save it if it
> is received within the time bound.
> It must be similar to command line ping.
>
> how should I do it?

I do not think that libcurl is the right library to do this. From the
web page, http://curl.haxx.se/:

"curl is a command line tool for transferring data with URL syntax "
[snip...]

ping is not used to transfer data. You should look at an actual ping
implementation (eg in busybox) or search for a ping example from where
to start.

Maxime
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-09