Re: Ping Class java



Skip schrieb:

"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.

Since Java 1.5 there is a ping-like method in java.net.InetAddress:
  public boolean isReachable(int timeout)
<http://java.sun.com/j2se/1.5.0/docs/api/java/net/InetAddress.html#isReachable(int)>

--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')

.



Relevant Pages

  • Re: Waiting for the end of multiple threads
    ... > Could someone tell me how to implement this programming logic in Java? ... The timeout aspect can be much more complicated, ... other threads and the expiration time of each one. ... finishes, it notifies the main task monitoring thread, which removes it from ...
    (comp.lang.java.programmer)
  • Re: How to know that the server side has close the connection when using java socket?
    ... zero to both C and Java in a Linux or SVR4 environment. ... Java, and it does, on every platform I've ever used. ... The wrapper receivemethod returns a zero-length String if the socket ... Compared with the length of any *sensible* timeout, ...
    (comp.lang.java.programmer)
  • Re: new to Java - best resource?
    ... java is mostly usefull for is graphics (ie images, list boxes, combo boxes ... Thats my first take on java. ... What else is it usefull for? ... Java is useful for server-side code, web applications, and the like... ...
    (comp.lang.java.programmer)
  • Re: Help selecting Java class libraries
    ... Commons-HttpClient may be usefull to you. ... These libs have source so you can learn even if you have to roll your own. ... There is a lot of networking buil-in with Java, so a lib may not be required. ... I tried building e-XML on Linux, and I was successful, but Windows is more practice for me. ...
    (comp.lang.java.programmer)
  • Re: new to Java - best resource?
    ... java is mostly usefull for is graphics (ie images, list boxes, combo ... Thats my first take on java. ... What else is it usefull for? ... Java is useful for server-side code, web applications, and the like... ...
    (comp.lang.java.programmer)