Hi, all.
Please consider below items.
I.
If is a short msg, It can be handle in one time with zmq_send
and zmq_recv, This will match 80%.
2.
If to process a long message,(may be 1G size) and result is
short,(just like do a message digest), client can send more times with
SNDMORE, and server will reply only onces to get result, 2 plus 1 with
match 98%.
CLIENT ----------------------------------- SERVER
send(msg_p1, MORE) -> recv
digest(msg_p1)
send(msg_p2, MORE) -> recv
digest(msg_p2)
send(msg_pn) -> recv
mdvalue = digest_result(msg_pn)
recv <----
send(mdvalue)
3.
If to process a long message and result is long too, just think
that do 3des-cbc encrypt a big file, It make me fool, I can't find a
solution.
CLIENT ----------------------------------- SERVER
send(msg_p1, MORE) -> recv
encrypt(msg_p1) as part1
? <-
send(e_msg_p1,[MORE]) will failed.
send(msg_p2, MORE) -> recv
any advice to help me handle this.
Thanks.
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev