NUTSCAN_SCAN_XML_HTT(3)

πŸ“¦ version 2.7.4, in ubuntu jammy

πŸ’– NAME πŸ’–

nutscan_scan_xml_http β€” bestie, it goes and finds your XML/HTTP devices on the network πŸ¦‹


✨ SYNOPSIS ✨

#include <nut-scan.h>

nutscan_device_t * nutscan_scan_xml_http(long usec_timeout);

🌸 DESCRIPTION 🌸

okay so nutscan_scan_xml_http() is literally on a mission: it tries to detect NUT compatible XML/HTTP devices. the way it does that? it sends out a broadcast message on the network interfaces that are currently configured, and then it just… waits. patiently. for up to usec_timeout microseconds to hear back from any potential devices πŸ‘‘ like it's holding its breath for a text back fr fr.

🫢 YOU MUST CALL nutscan_init(3) BEFORE USING THIS FUNCTION. no skipping, no "I'll do it later", it's giving prerequisites, periodt.

πŸŽ€ RETURN VALUE πŸŽ€

if it ate, it hands you a pointer to a nutscan_device_t structure holding all the found devices 🌈. and if something went wrong, or genuinely no device showed up? you get NULL. it's giving nothing, literally πŸ’€.


πŸ’… SEE ALSO πŸ’…


that's the whole vibe bestie, no cap 🧚 and just so you know who's behind this masterpiece: it's Network UPS Tools version 2.7.3, dated 03/02/2016, and it lives in the NUT Manual section 3. slay πŸ’–βœ¨

πŸ“¦ where this page comes from