8 lines
3.3 KiB
Plaintext
8 lines
3.3 KiB
Plaintext
XEROX HostUp
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
HostUp
|
||
1
|
||
|
||
4
|
||
|
||
By: Johannes A. G. M. Koomen
|
||
(Koomen.wbst@Xerox or Koomen@CS.Rochester.edu)
|
||
|
||
This document last edited on December 27, 1988
|
||
SUMMARY
|
||
This module provides the function HOSTUP? which attempts to find out if a given host is currently available. Contrast this to the system function HOSTNAMEP, which returns T if it has at any time successfully opened a connection to given host, whether or not it is currently available.
|
||
DETAILS
|
||
(HOSTUP? hostname) [Function]
|
||
Returns T if and only if the given host is currently responding. No distinction is made between dead and non-existing hosts.
|
||
HOSTUP.TIMEOUT [Global variable]
|
||
The function HOSTUP? returns NIL if no response is received from the given host within HOSTUP.TIMEOUT milliseconds. Default value is 15,000.
|
||
HOSTUP.RETRYCNT [Global variable]
|
||
This variable indicates the number of times the function HOSTUP? sends requests to the given host. Each time through the loop the function waits longer by a geometrically increasing amount if time, such that the total time does not exceed HOSTUP.TIMEOUT. Default value is 5. Hence, in the default case, a call to HOSTUP? with a dead host ends up sending a request to the host 5 times, waiting for an answer about 500, 1000. 2000. 4000 and 8000 milliseconds, respectively.
|
||
|