|
libwebsockets
Lightweight C library for HTML5 websockets
|
A snapshot of what the system we are running on looks like, for logging at startup so the logs say where they came from, and for debugging: the lws build and version, what the system calls itself, its OS and architecture, the time, how long it has been up, its cpus and RAM, every address on every network interface, and the resolver's nameservers and search list.
lws_sysinfo_create() takes the snapshot, lws_sysinfo_next() walks its items, lws_sysinfo_describe() renders one as a line of text, and lws_sysinfo_destroy() frees it. What is in it depends on the platform: an item a platform can't provide is simply not there.