
NAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE
CETerm Scripting Guide Page 62
status = Ping ( hostname, timeout )
Sends an ICMP packet to the hostname and waits timeout milliseconds for a
reply. The hostname may be a text name or an IP address. Return the round-
trip response time in milliseconds. Return 0 for no response, or a negative value
on error. Use the Network property LastPingError to get additional error
information.
The Ping command is synchronous, so no other CETerm operations occur while
it is active. You should minimize the timeout value. The property
MaximumPingTimeout limits the timeout you can specify in the Ping command.
Properties
The Network object has the following properties.
Returns the FTP object. This object
provides access to FTP operations. (read
only)
Returns the last error value associated
with the DNSLookup method. (read only)
Returns the last error value associated
with the Ping method. (read only)
Returns the hostname used in the last
Ping operation. (read only)
Returns the IP address used in the last
Ping operation. (read only)
Returns the last error value associated
with any Windows socket operations.
(read only)
Controls the maximum timeout for the
Ping command. The default value is
3000 milliseconds. Use caution when
increasing this value due to the delays it
may produce.
Commenti su questo manuale