cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to ping IP using libcurl?

From: Oscar Koeroo <okoeroo_at_nikhef.nl>
Date: Fri, 09 Nov 2012 20:31:29 +0100

On 09-11-12 14:51, JALINDAR wrote:
> Hi Forum,
>
> 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?
>
> Thanks
> Jalindar

Do you mean ping-like behaviour or ping as in the ICMP protocol? The later
is the defacto meaning of ping and the similar ping command. This is
something curl can not do. Also ping needs administrator privileges (near)
all platforms to function. This has to do with the ICMP protocol specifics.

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