-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Cipta,
Cipta H wrote: > Thanks for the reply, Xin. I'm aware of something called sysctl, and if > I am accepted to work on this project, my main task is to ensure all live > network data will come from sysctl, but the only XML I know of is the > markup language. Perhaps someone more knowledgeable can point me > to the right resource? Thanks in advance. Yes it's the markup language. I think whether or not to use XML really depends on whether you want structured data. The current approach we have used is to use kvm(3) and obtain the data directly based on knowledge of in-kernel data structure. By using XML, the structured data can be represented in a self-explaining form and known data can be easily extracted from it (of course you will need to design a schema for the data but that's fairly easy once you know what you are willing to expose). Note that you may want to contact Robert to better understand the problem that the libnetstat and friends is targeted to solve. XML is one possible approach (and we have a built-in XML parser library that can be used by userland programs) but it's not the only possible approach :) > Cipta > > On Mon, Mar 16, 2009 at 3:04 PM, Xin LI <delp...@delphij.net> wrote: >> I'm not very sure but I think Rui is referring XML like the GEOM >> subsystem has used (perhaps to have the kernel expose the statistics >> data with XML and the userland part of the library parse and return the >> result)? Cheers, - -- Xin LI <delp...@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkm+xUcACgkQi+vbBBjt66AGRwCgpN1jErbevmhllKqlQgYxuWZt 07AAn1iycaHQCrC74h/RHkokFyBdD9RD =QUDy -----END PGP SIGNATURE----- _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"