diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2015-09-18 15:15:18 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2015-09-18 15:15:18 +0000 |
commit | 8b2630a82fbecfd57fa38aebb397a755936690e5 (patch) | |
tree | a9cfcd7bb5bea87d63fc8ef81c8456a130a249bc /src/mod_proxy_core_address.h | |
parent | e57c8295ebe92b58ca3e68fa8ea8f70d4b0b4cee (diff) | |
download | lighttpd-master.tar.gz |
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_proxy_core_address.h')
-rw-r--r-- | src/mod_proxy_core_address.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/mod_proxy_core_address.h b/src/mod_proxy_core_address.h deleted file mode 100644 index c7177ca7..00000000 --- a/src/mod_proxy_core_address.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef _MOD_PROXY_CORE_ADDRESS_H_ -#define _MOD_PROXY_CORE_ADDRESS_H_ - -#include <time.h> -#include "buffer.h" -#include "sys-socket.h" -#include "array-static.h" - -typedef enum { - PROXY_ADDRESS_STATE_UNSET, - PROXY_ADDRESS_STATE_ACTIVE, - PROXY_ADDRESS_STATE_DISABLED, -} proxy_address_state_t; - -typedef struct { - sock_addr addr; - socklen_t addrlen; - - buffer *name; /* a inet_ntoa() prepresentation of the address */ - - time_t last_used; - time_t disabled_until; - - size_t used; /* count of connections currently using this address */ - - proxy_address_state_t state; -} proxy_address; - -ARRAY_STATIC_DEF(proxy_address_pool, proxy_address, ); - -proxy_address_pool *proxy_address_pool_init(void); -void proxy_address_pool_free(proxy_address_pool *address_pool); -void proxy_address_pool_add(proxy_address_pool *address_pool, proxy_address *address); -int proxy_address_pool_add_string(proxy_address_pool *address_pool, buffer *address); - -#endif |