zeromq - Which one is preferable : zmq_send or zmq_msg_send? -
i discovering zeromq, , understand zmq_send
sends buffer , zmq_msg_send
sends zmq_msg_t
message. seems me 2 different ways of doing same thing (both can send multi-part messages, etc).
what advantages of using zmq_msg_t
structs?
advantage code works on bit lower-level, closer metal, , saves few cpu-cycles, .zmq_send()
wrapper spends on preparing zmq_msg_t
struct , passing forward zmq-internal messaging processing .zmq_msg_send()
in 1 step.
Comments
Post a Comment