NUTSCAN_SCAN_XML_HTT(3)
π 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 π
nutscan_init(3)nutscan_scan_usb(3)nutscan_scan_snmp(3)nutscan_scan_nut(3)nutscan_scan_avahi(3)nutscan_scan_ipmi(3)nutscan_display_ups_conf(3)nutscan_display_parsable(3)nutscan_new_device(3)nutscan_free_device(3)nutscan_add_option_to_device(3)nutscan_add_device_to_device(3)nutscan_scan_eaton_serial(3)
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
- ubuntu jammy: libnutscan-dev 2.7.4-14ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms