Two Laptop Bag*
The moose likes Beginning Java and the fly likes Java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java application" Watch "Java application" New topic
Author

Java application

tom picot
Greenhorn

Joined: Feb 05, 2002
Posts: 1
Hi all,
I am developing a java stand-alone application and it is required to constantly check whether the application/client machine is connected to the internet. What is the best way to do this from within the application programmatically?
Thanks in advance.
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Tom
You could create a new Thread the occasionally wakes up and pings the machine it is checking.
The actual implementation of that is alittle beyond me at this point but I'm sure someone else here can give you a quick example.
hope that helps a little bit...


Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java application