Hi all,

I have developped a proxy hook to ease the development of different kinds of proxy for say filtering, tests, ROUTER/ROUTER proxy, STREAM/STREAM proxy, etc. My first aim was to have something conveniant for the development of a CURVE proxy (including the handcheck, to load balance the security mechanism itself). As a first step, here is in the forthcoming pull request this hook, including the documentation and example and test.

It adds to the API:

int zmq_proxy_hook (const void '*frontend', const void '*backend', const void '*capture', const void '*hook', const void '*control');

typedef int (*zmq_hook_f)(void *frontend, void *backend, void *capture, zmq_msg_t* msg_, size_t n_, void *data_);

typedef struct zmq_proxy_hook_t {
    void *data;
    zmq_hook_f front2back_hook;
    zmq_hook_f back2front_hook;
} zmq_proxy_hook_t;


Cheers,


Laurent
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to