Dart.PowerTCP.SslSockets Namespace > EchoResult Class : Sequence Property |
Gets the sequence ID included with the request.
[Visual Basic]
Public ReadOnly Property Sequence As Integer
[C#]
public int Sequence {get;}
[C++]
public: __property int get_Sequence();
An integer value representing the sequence ID included with the echo request.
If the EchoResult was generated as a result of a ping operation, this property will either return the sequence number passed into the Send method, or 0 if no sequence number was passed into the Send method.
If the EchoResult was generated as a result of a traceroute operation, this property will return an auto-incremented integer, starting from 1. For example, if a traceroute operation requires 3 hops, HopResult 1 will contain 3 EchoResult objects, sequence 1, 2, and 3. HopResult 2 will contain 3 EchoResult objects, sequence 4, 5, and 6.
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");
}
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
EchoResult Class | EchoResult Members
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.