Platforms to show: All Mac Windows Linux Cross-Platform

/Network/DNS Benchmark


Required plugins for this example: MBS Network Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Network/DNS Benchmark

This example is the version from Wed, 9th Apr 2013.

Project "DNS Benchmark.xojo_binary_project"
Class Window1 Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
Control info Inherits Label
ControlInstance info Inherits Label
End Control
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() if UBound(names) = -1 then me.Mode = 0 Return end if dim n as string = names(0) names.Remove 0 dim ip as string = DNSNameToAddressMBS(n) List.AddRow n, ip, "IPv4" count = count + 1 dim delta as Double = (ticks-time) / 60.0 info.text = str(count)+" "+Format(count / delta, "0.0")+" per second." End EventHandler
End Control
EventHandler Sub Open() dim a as integer = asc("a") dim z as integer = asc("z") for i as integer = a to z for j as integer = a to z for k as integer = a to z names.Append "www."+chr(i)+chr(j)+chr(k)+".com" next next next time = ticks End EventHandler
Property count As Integer
Property names() As string
Property time As Integer
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

See also:

The items on this page are in the following plugins: MBS Network Plugin.


The biggest plugin in space...