[zeromq-dev] Another attempt to proxying CURVE
Laurent Alebarde
l.alebarde at free.fr
Thu Dec 19 17:35:49 CET 2013
Hi all,
I am trying a more straight forward approach to proxy CURVE :
client (CURVE DEALER) --------- frontend (ZMQ_STREAM) proxy (ZMQ_STREAM)
backend ------- (CURVE DEALER) worker
I have sticked to test_stream.cpp. The idea here is the proxy pools only
workers at the beginning. When a worker connects, we pool also the
client and the backend stays on standby until the client is identified.
Then the proxy forwards all the messages from one to the other. There is
a little state machine for the frontend and for the backend in the proxy.
The code is simplified and works only with one client and one worker.
So, I don't have to manage any pairing.
It starts well, both client and worker are identified in the proxy, then
both backend and frontend forward the identity and signature of one peer
to the other.
The problem is that just after the frontend has sent them, it receive
back from the client its identity (as expected), and a 1 byte message
(content = 3) instead of the greeting.
All this is in my repository here :
https://github.com/lalebarde/libzmq/commits/master
File to consider is: test_curve_proxying.cpp
Any help is welcome. Thanks.
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131219/03b4b25a/attachment.htm>
More information about the zeromq-dev
mailing list