Mercurial > dovecot > original-hg > dovecot-1.2
view src/login-common/login-proxy-state.h @ 9575:0a00dcc4f0ea HEAD
lib-storage: Allow shared namespace prefix to use %variable modifiers.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 26 May 2010 17:07:51 +0100 |
parents | 562af4a76438 |
children |
line wrap: on
line source
#ifndef LOGIN_PROXY_STATE_H #define LOGIN_PROXY_STATE_H #include <sys/time.h> struct login_proxy_record { struct ip_addr ip; unsigned int port; unsigned int num_waiting_connections; struct timeval last_failure; struct timeval last_success; }; struct login_proxy_state *login_proxy_state_init(void); void login_proxy_state_deinit(struct login_proxy_state **state); struct login_proxy_record * login_proxy_state_get(struct login_proxy_state *state, const struct ip_addr *ip, unsigned int port); #endif