UPSCLI_GET_DEFAULT_C(3) NUT Manual UPSCLI_GET_DEFAULT_C(3)

upscli_get_default_connect_timeout - Return the upsclient module default timeout for initial connections.

        #include <upsclient.h>
        int upscli_get_default_connect_timeout(struct timeval *ptv);

The upscli_get_default_connect_timeout() function takes the pointer ptv to a struct timeval and returns the default network timeout for initial connections last assigned with upscli_set_default_connect_timeout(3).

upscli_connect(3), upscli_tryconnect(3), upscli_init_default_connect_timeout(3), upscli_set_default_connect_timeout(3)

05/29/2025 Network UPS Tools 2.8.3