Work has begun on the long promised Mono (C#) bindings for LQL. This little C# program will display traffic statistics for all of the queueing disciplines that are supported by the C LQL library.
using System; using LQL; class MainClass { public static void Main(string[] args) { Gtk.Application.Init(); LQL.Con con = new LQL.Con(); GLib.List ifList = con.ListInterfaces(); foreach (LQL.Interface netInf in ifList) { GLib.List qdiscList = con.ListQdiscs(netInf); foreach (LQL.QDisc qdisc in qdiscList) { qdisc.UpdateStats(con); qdisc.PrintStats(); } } } }
Very exciting stuff!
LQL# is not nearly polished enough for a public release yet but I am quite happy with how the work is progressing.
FINALLY…what took you so long? I’ve been waiting my entire life for these LQL bindings….