1NUTSCAN_SCAN_XML_HTT(3) NUT Manual NUTSCAN_SCAN_XML_HTT(3)
2
3
4
6 nutscan_scan_xml_http_range - Scan network for XML/HTTP devices.
7
9 #include <nut-scan.h>
10 #include <unistd.h> /* useconds_t */
11
12 nutscan_device_t * nutscan_scan_xml_http_range(
13 const char * start_ip,
14 const char * end_ip,
15 useconds_t usec_timeout,
16 nutscan_xml_t * sec)
17
19 The nutscan_scan_xml_http_range() function tries to detect NUT
20 compatible XML/HTTP devices.
21
22 If start_ip is NULL, the function does this by issuing a broadcast
23 message on currently configured network interfaces.
24
25 Otherwise, it queries every IP ranging from start_ip to stop_ip. Those
26 IP arguments may be either IPv4 or IPv6 addresses or host names.
27
28 It waits up to usec_timeout microseconds for a response from potential
29 devices.
30
31 You MUST call nutscan_init(3) before using this function.
32
34 The nutscan_scan_xml_http_range() function returns a pointer to a
35 nutscan_device_t structure containing all found devices or NULL if an
36 error occurs or no device is found.
37
39 nutscan_init(3), nutscan_scan_usb(3), nutscan_scan_snmp(3),
40 nutscan_scan_nut(3), nutscan_scan_avahi(3), nutscan_scan_ipmi(3),
41 nutscan_display_ups_conf(3), nutscan_display_parsable(3),
42 nutscan_new_device(3), nutscan_free_device(3),
43 nutscan_add_option_to_device(3), nutscan_add_device_to_device(3),
44 nutscan_scan_eaton_serial(3)
45
46
47
48Network UPS Tools 2.8.0 04/26/2022 NUTSCAN_SCAN_XML_HTT(3)