Ping Class

Properties   Methods   Events   Configuration Settings   Errors  

The Ping class encapsulates ICMP ECHO functionality, used to check whether there is a communications link between two computers.

Syntax

ipworks.ping()

Remarks

When the PingHost method is called with the Host parameter, or RemoteHost is assigned an IP address or domain name, the class sends an ICMP ECHO packet to the remote host. The ResponseTime and ResponseSource properties are updated with the time of the roundtrip to the remote host, and the address of the host actually sending the response.

The class operates synchronously by default (waits for a response before returning control to the caller), however, the class may also operate asynchronously (return control immediately), by setting Timeout to 0. Please refer to the Timeout property for more information.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

ActiveEnables or disables receiving of data.
IdleThe current status of the class.
LocalHostThe name of the local host or user-assigned IP interface through which connections are initiated or accepted.
PacketSizeThe size of the packet to send as the ping request.
RemoteHostThe address of the RemoteHost. Domain names are resolved to IP addresses.
RequestIdA unique identifier for outgoing packets.
ResponseSourceThe source of the last PING response.
ResponseTimeTime elapsed between sending the original packet and the remote host reply.
TimeoutA timeout for the class.
TimeToLiveThe time to live (TTL) value for the ICMP packets sent by the class.
TypeOfServiceThe type of the ICMP message sent as a ping request.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting.
DoEventsProcesses events from the internal message queue.
InterruptInterrupt the current method.
PingHostPings a host.
ResetReset the class.
WakeOnLANSends a Wake-On-LAN packet.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

ErrorInformation about errors during data delivery.
ResponseFired when a response packet is received.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

TimeoutInMillisecondsThe timeout is treated as milliseconds.
DontFragmentWhether the DontFragment control flag is set.
IcmpDllTimeoutThe timeout for the class when using the icmp.dll.
MaxMessageSizeThe maximum length of the messages that can be received.
MulticastTTLThe time to live (TTL) value for multicast ICMP packets sent by the class.
ReceiveAllModeEnables a socket to receive all IPv4 or IPv6 packets on the network.
TimeoutInMillisecondsThe timeout is treated as milliseconds.
UseConnectionDetermines whether to use a connected socket.
UseICMPDLLUse the icmp.dll included on Windows Systems.
UseIPHLPDLLUse the iphlpapi.dll included on Windows Systems.
UseIPv6Whether to use IPv6.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Node.js Edition - Version 20.0 [Build 8307]