See Also

EchoResult Members  | Dart.PowerTCP.SslSockets Namespace

Requirements

Namespace: Dart.PowerTCP.SslSockets

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Dart.PowerTCP.SslSockets (in Dart.PowerTCP.SslSockets.dll)

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Requirements Languages PowerTCP SSL Sockets for .NET

EchoResult Class

Dart.PowerTCP.SslSockets Namespace : EchoResult Class

Encapsulates an echo response from a server.

For a list of all members of this type, see EchoResult members.

Inheritance Hierarchy

System.Object
   Dart.PowerTCP.SslSockets.EchoResult

Syntax

[Visual Basic]
Public Class EchoResult
[C#]
public class EchoResult
[C++]
public __gc class EchoResult
[C++/CLI]
public ref class EchoResult

Remarks

If using the Ping component: After pinging a host using Send or BeginSend, an EchoResult object is returned (if pinging asynchronously, this object is made accessible in the EndSend event). The EchoResult object encapsulates the ping response. For example, ResponseTime returns the time it took for the host to respond to the ping.

If using the Trace component: Each traceroute hop is actually comprised of three ICMP echoes. For this reason, each HopResult received from a traceroute operation (in the Hop event) will contain an array of three EchoResult objects. Each of these EchoResult objects encapsulate the ICMP echo response. For example, ResponseTime returns the time it took for the host to respond to the echo.

Example

The following example demonstrates a default ping operation.

[Visual Basic] 

Try
   ' Ping a host
   Dim er As EchoResult = Ping1.Send("www.dart.com")

   ' Display results
   Debug.WriteLine("Response from www.dart.com")
   Debug.WriteLine("Sequence number " + er.Sequence)
   Debug.WriteLine("Delay " + er.ResponseTime)
   Debug.WriteLine("Bytes " + er.Data.Length)

Catch ex as Exception
    Debug.WriteLine("Cannot reach www.dart.com")
End Try

[C#] 


try
{
  
// Ping a host
  
EchoResult er = ping1.Send("www.dart.com");

  
// Display results
  
Debug.WriteLine("Response from www.dart.com");
  Debug.WriteLine(
"Sequence number " + er.Sequence);
  Debug.WriteLine(
"Delay " + er.ResponseTime);
  Debug.WriteLine(
"Bytes " + er.Data.Length);
}
catch(Exception ex)
{
  Debug.WriteLine(
"Cannot reach www.dart.com");
}
                

Requirements

Namespace: Dart.PowerTCP.SslSockets

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Dart.PowerTCP.SslSockets (in Dart.PowerTCP.SslSockets.dll)

See Also

EchoResult Members  | Dart.PowerTCP.SslSockets Namespace

 

Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.