Class com.sekati.net.Bandwidth

Description

Simple bandwidth throughput test

 Usage:
 function bandwidthResult(speed:Number, testsize:Number, ms:Number){
 	trace("bandwidth speed: "+speed+"kbps, test filesize: "+testsize+", test time: "+ms+"ms");
 }
 var bandwidthTest = new com.sekati.net.Bandwidth("assets/bandwidth_data/50k", bandwidthResult);
 

Method Index

new Bandwidth()

Inherited from CoreObject

Constructor Detail

Bandwidth

public function Bandwidth(uri:String, cb:Function)

constructor

Parameters

uri(String) uri to bandwidth test file (should be non tcp/ip compressable random "junk data" see deploy/assets/bandwidth_data)
cb(Function) callback function for test to return speed, filesize, ms results.