diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-07 20:47:55 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-07 20:47:55 +0400 |
commit | 9b8ecfb8923cae677777a68790f23fbcf26bdabf (patch) | |
tree | 01e262f8354d2209c595fc911f819ca9a54b37ed /src/smtp.h | |
parent | 944dd2a7eab62d2b23c31e26a33d4ad79c11381b (diff) | |
download | rspamd-9b8ecfb8923cae677777a68790f23fbcf26bdabf.tar.gz rspamd-9b8ecfb8923cae677777a68790f23fbcf26bdabf.zip |
* Add initial implementation of proxy object
* Add simple smtp proxy worker
Diffstat (limited to 'src/smtp.h')
-rw-r--r-- | src/smtp.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/smtp.h b/src/smtp.h index d2c14f924..714fb3523 100644 --- a/src/smtp.h +++ b/src/smtp.h @@ -4,19 +4,10 @@ #include "config.h" #include "main.h" #include "upstream.h" - -struct smtp_upstream { - struct upstream up; - - const gchar *name; - struct in_addr addr; - guint16 port; - gboolean is_unix; -}; +#include "smtp_utils.h" struct rspamd_dns_resolver; -#define MAX_UPSTREAM 128 #define DEFAULT_MAX_ERRORS 10 enum rspamd_smtp_stage { @@ -29,8 +20,8 @@ enum rspamd_smtp_stage { }; struct smtp_worker_ctx { - struct smtp_upstream upstreams[MAX_UPSTREAM]; - size_t upstream_num; + struct smtp_upstream upstreams[MAX_SMTP_UPSTREAMS]; + gsize upstream_num; gchar *upstreams_str; memory_pool_t *pool; |