[zeromq-dev] proxy hook

Laurent Alebarde l.alebarde at free.fr
Fri Jan 24 17:08:20 CET 2014

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;


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140124/08f3d5e4/attachment.htm>

More information about the zeromq-dev mailing list