ConnectionLatency Property (.NET)

 

Type: Integer

 

Returns the latency in milliseconds of the visitor's connection speed for downloads.

 

Note: To use this property you must set the SpeedCheckType property to indicate you wish to use the Progressive testing method, set the SupportFilesRoot property as required by the Progressive testing method, copy the speed test image files to your server as explained in the Progressive testing section, and call the GetExtendedBrowser method before checking the value of this property.

 

Tip: See the speed.asp for a working example of the connection latency test.

 

C# Example:

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("ConnectionSpeed, ConnectionLatency");

options.PageMessage = "Please wait while your connection speed is tested…";

options.SpeedCheckType = ExtendedOptions.SPEED_CHECK_TYPE_PROGRESSIVE;

options.SupportFilesRoot = "url where you placed speed test image files";

 

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

  Your download connection speed in bits per second is: <% Response.Write(extBrow.ConnectionSpeed); %> <br>

  Your download connection latency in milliseconds is: <% Response.Write(extBrow.ConnectionLatency); %> <p>

  Your download connection speed for nicely formatted display purposes is: <% Response.Write(extBrow.Translate("ConnectionSpeed")); %> <p>

</html>

 

Special notes for this property:

 

See Also:

ConnectionSpeed Property (.NET)

Detecting Connection Speed and Dialup Users

Progressive Versus Original Speed Test