This program is written in Java, you may wish to read this first.
This program attempts to connect to a remote computer. If it fails, it tries again. If it succeeds, it lets you know. This is useful, if you wish to connect to a remote computer that is currently not responding. Rather than waste time endlessly trying to connect to the remote computer, just fire up HostResumedNotifer and wait.
For example:
java HostResumedNotifier raptor.ukc.ac.uk 23
will repeatedly attempt to connect to port 23 of raptor.ukc.ac.uk, and inform you when it succeeds.
How to run:
This program requires command line arguments, so you cannot run it by double clicking on the jar file.
java -jar HostResumedNotifier.jar <host name> <port> <interval>
Where <host name> is the name or I.P. address of the computer you wish to connect to, <port> is the port you wish to connect on, and <interval> is how often to attempt a connection.
To do:
- Come up with a better name
- Do something more useful than just quit when the host resumes (this could cause problems with other programs that choose to create a HostResumedNotifier
- Do something useful if too many InterruptedExceptions occur
Version History
- 1.1 - Removed the hard-coded host name, port and retry interval. Tidied up the code.
- 1.0 - First draft
Downloads:
HostResumedNotifier.jar (25kb), includes source code and javadoc documentation
There is also an online version of the javadocs.

