Hi All,

I need to write a pgm to ping a system.

Also, i need to specify a timeout for that.

How to do that ?

Becoz most of the code to ping uses socket (even ICMP calls) commands like inet_addr.

Since these commands are used, when the system if not present takes a lot of time.

So how to write a pgm to ping a system by specifying Timeout?

With Regards,
A.Ilamparithi.