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
Win a copy of
REST with Spring (video course)
this week in the
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]
rocket mass heater
subject: Pinging In Java
Design pattern for sorting nested arraylists
SQL Server 2005 Connection using SQL Explorer 3.5 in Eclipse
Overriden method throwing Exception.
ping a website
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015