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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -