proxy.h
a15c363f
 /*
  * $Id$
  *
  */
 
 #ifndef proxy_h
 #define proxy_h
 
 #include <netdb.h>
 
 struct proxy_l{
 	struct proxy_l* next;
 	char* name; /* original name */
 	struct hostent host; /* addresses */
 	unsigned short port;
 	unsigned short reserved; /*align*/
 	
 	/* socket ? */
 
 	int addr_idx;	/* crt. addr. idx. */
 	int ok; /* 0 on error */
 	/*statisticis*/
 	int tx;
 	int tx_bytes;
 	int errors;
 };
 
 extern struct proxy_l* proxies;
 
4ac74c03
 struct proxy_l* add_proxy(char* name, unsigned short port);
 
a15c363f
 
 #endif