Make useful socket functions more generally available
[exim.git] / src / src / spam.h
index ba700c8b69e3174d10c1f6d0a0685486271fe330..50aed914535fd0fa5898095533c1904dd10dd5b2 100644 (file)
 
 /* SHUT_WR seems to be undefined on Unixware ? */
 #ifndef SHUT_WR
-#define SHUT_WR 1
+# define SHUT_WR 1
 #endif
 
-typedef struct spamd_address_container {
-  uschar tcp_addr[24];
-  unsigned int tcp_port;
+/* default weight */
+#define SPAMD_WEIGHT 1
+
+typedef struct spamd_address_container
+{
+  uschar * hostname;
+  unsigned short tcp_port;
+  int is_rspamd:1;
+  int is_failed:1;
+  int is_backup:1;
+  unsigned int weight;
 } spamd_address_container;
 
 #endif