Displaying 3 results from an estimated 3 matches for "dict_r".
2013 Aug 21
1
Dovecot antispam plugin for 2.2
...The particular piece that I am currently stuck on is that the
dict_init() in dovecot now requires more arguments than in previous
versions, it now requires this:
int dict_init(const char *uri, enum dict_data_type value_type,
const char *username, const char *base_dir, struct dict **dict_r,
const char **error_r);
but previously, we only needed four arguments. Now we need to know what
to supply for '**dict_r' and '**error_r'. Any advise/help would be appreciated:
make[1]: Entering directory `/home/micah/debian/dovecot-antispam/dovecot-antispam-2.0+20120...
2017 Aug 03
2
proxy-dict with tcp connection
...ESS) tuple=172.18.0.2:47552->10.44.99.180:2001
Looking at dict-memcached-ascii.c I probably need to do something like:
i_array_init(&dict->input_states, 4);
i_array_init(&dict->replies, 4);
dict->ioloop = io_loop_create();
io_loop_set_current(old_ioloop);
*dict_r = &dict->dict;
to wait until the socket is ready ...
Any idea / tips?
Ralf
--
Ralf Becker
EGroupware GmbH [www.egroupware.org]
Handelsregister HRB Kaiserslautern 3587
Gesch?ftsf?hrer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 631 31657-0
----------...
2017 Aug 03
0
proxy-dict with tcp connection
...2001
>
> Looking at dict-memcached-ascii.c I probably need to do something like:
>
> i_array_init(&dict->input_states, 4);
> i_array_init(&dict->replies, 4);
>
> dict->ioloop = io_loop_create();
> io_loop_set_current(old_ioloop);
> *dict_r = &dict->dict;
>
> to wait until the socket is ready ...
>
> Any idea / tips?
>
> Ralf
It's probably cleaner to make a "proxy-tcp" driver so parsing all the funny things gets easier. Also it will require some restructing in the client_dict_connect code.
A...