File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sockets and Internet Protocols
Pinging In Java
Joined: Sep 10, 2002
Feb 25, 2004 23:54:00
Is there a way to ping in
I need to have echo response times of some addresses but I could not find a spesific class that does ping.
author and iconoclast
Joined: Jul 08, 2003
Feb 27, 2004 07:59:00
Ping is implemented using a low-level protocol named ICMP, and Java doesn't support it directly. You have three choices:
Use the UDP 'echo' protocol or something similar instead of real 'ping', like
Execute an external 'ping' program using Runtime.exec(); or
Use JNI to interface to native code that implements ICMP ping.
[Jess in Action]
I agree. Here's the link:
subject: Pinging In Java
SQL Server 2005 Connection using SQL Explorer 3.5 in Eclipse
ping a website
Overriden method throwing Exception.
Design pattern for sorting nested arraylists
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014