Re: Ping Class java



Skip wrote:
"Marc van den Bogaard" <marc.bogaard@xxxxxx> wrote in message
news:1128071828.22112.0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi all!

Does anyone know a Ping Class in Java
to do a simple "ping" on a server and reading the response?

Didn't find anything usefull up to now.


In the Sun Runtime there are no APIs that expose this behaviour.



In the meantime I found out, that Java doesn't support Raw Sockets which are necessary to do such a ICMP ECHO (Ping).

But you can use Native C Code.
Calling the native code using the JNI interface.
The finishing touch is to wrap the JNI call in an RMI class.

Thats the theory...
.