timeout

timeout — Manage timeouts.

Synopsis

void                uc_timeout_domains_init             (void);
void                uc_timeout_domains_free             (void);
void                uc_timeout_domains_register         (const gchar *domain);
gboolean            uc_timeout_domains_is_blocked       (const gchar *domain);

Description

Details

uc_timeout_domains_init ()

void                uc_timeout_domains_init             (void);

Initialisation of timeout_domains stuff.


uc_timeout_domains_free ()

void                uc_timeout_domains_free             (void);

Clean all timeout domains stuff.


uc_timeout_domains_register ()

void                uc_timeout_domains_register         (const gchar *domain);

Register a new host. Just increment timeout count if the host already exist. If not, create a new entry for this host.

domain :

The host.

uc_timeout_domains_is_blocked ()

gboolean            uc_timeout_domains_is_blocked       (const gchar *domain);

Check if a given host must not be checked anymore because of too many timeouts.

domain :

The host.

Returns :

TRUE if the given host must not be checked anymore.