This component is part of the IP Works Enterprise ASP.NET Component Library.
The ICMPPort component is used to facilitate ICMP communications. It can act both as a client and a server and communicate with any number of hosts simultaneously, as well as generate and receive broadcast packets.
NOTE: What follows is a very short description of the component interfaces. For more information, please consult the help files that come with the respective package.
Remarks
The interface of the component is similar to the interface of IPPort, only much simpler. The component is activated/deactivated by using the Active property. This property enables or disables sends or receives. Data can be sent in the same way as IPPort, using the Send method and Text parameter or the DataToSend property. The destination is specified using the RemoteHost property. The component automatically creates an ICMP header containing MessageType, MessageSubType, and a checksum for the message.
If the UseConnection config setting is set to True, then a local association is created with the remote host. Otherwise, the component can receive datagrams (packets) from any host, and send datagrams to any host. Packets can be broadcasted on the local net by setting the destination to 255.255.255.255.
Inbound data is received through the DataIn event.
The operation of the component is almost completely asynchronous. All the calls, except the ones that deal with domain name resolution, operate through Windows messages (no blocking calls). The gain in performance is considerable when compared to using blocking calls.
More Information: http://www.nsoftware.com/products/component/icmpport.aspx |