Re: Ping Class java
- From: Marc van den Bogaard <marc.bogaard@xxxxxx>
- Date: Fri, 30 Sep 2005 12:41:21 +0200
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... .
- References:
- Ping Class java
- From: Marc van den Bogaard
- Re: Ping Class java
- From: Skip
- Ping Class java
- Prev by Date: Re: Name that anti-pattern
- Next by Date: Re: servletContext inputstream problem
- Previous by thread: Re: Ping Class java
- Next by thread: Re: Ping Class java
- Index(es):