comparison src/dnsbl.h @ 177:a4d313c2460b

start embedded dcc filtering
author carl
date Sun, 30 Sep 2007 10:27:14 -0700
parents 6bac960af6b4
children d6531c702be3
comparison
equal deleted inserted replaced
176:4ec928b24bab 177:a4d313c2460b
22 // 22 //
23 struct mlfiPriv 23 struct mlfiPriv
24 { 24 {
25 // connection specific data 25 // connection specific data
26 CONFIG *pc; // global filtering configuration 26 CONFIG *pc; // global filtering configuration
27 int fd; // to talk to dns resolvers process 27 int fd; // to talk to dns resolver process
28 bool err; // did we get any errors on the resolver socket? 28 bool err; // did we get any errors on the resolver socket?
29 int ip; // ip4 address of the smtp client 29 int ip; // ip4 address of the smtp client
30 char *helo; // helo from client 30 char *helo; // helo from client
31 map<DNSBLP, bool> checked; // map of dnsblp to result of (ip listed on that dnsbl) 31 map<DNSBLP, bool> checked; // map of dnsblp to result of (ip listed on that dnsbl)
32 // message specific data 32 // message specific data
51 mlfiPriv(); 51 mlfiPriv();
52 ~mlfiPriv(); 52 ~mlfiPriv();
53 void reset(bool final = false); // for a new message 53 void reset(bool final = false); // for a new message
54 void get_fd(); 54 void get_fd();
55 void return_fd(); 55 void return_fd();
56 int my_read(char *buf, int len); 56 size_t my_read(char *buf, size_t len);
57 int my_write(char *buf, int len); 57 size_t my_write(const char *buf, size_t len);
58 void need_content_filter(char *rcpt, CONTEXT &con); 58 void need_content_filter(char *rcpt, CONTEXT &con);
59 }; 59 };
60 60
61 void my_syslog(mlfiPriv *priv, char *text); 61 void my_syslog(mlfiPriv *priv, char *text);
62 void my_syslog(mlfiPriv *priv, string text); 62 void my_syslog(mlfiPriv *priv, string text);