[zeromq-dev] Simple questions
Alexey Melnichuk
mimir at newmail.ru
Sat Apr 27 10:11:27 CEST 2013
Pieter Hintjens <ph <at> imatix.com> writes:
>
> For what it's worth, there were two cases in CZMQ that did _close
> after _send; I've removed these and re-run the tests under Valgrind
> and it does not leak memory, as expected.
>
> -Pieter
I expect this too. But is it documented behaviour or implementation detail?
And one more question.
Do i need call zmq_msg_init before copy/move?
while(1)do{
zmq_msg_t msg;
// zmq_msg_init ?
zmq_msg_copy(&msg, HB_MSG);
zmq_msg_send(skt, &msg, 0);
// zmq_msg_close ?
sleep(INTERVAL);
}
More information about the zeromq-dev
mailing list