Daniel,

> Is it possible to send a raw C structure via zmq with memcpy?

I use the following, and it works quite well for me:

zmq::message_t    msg(aPayload.size());
memcpy(msg.data(), aPayload.data(), aPayload.size());

No problem.

    Thanks,
        Bob ([email protected])
    The Man from S.P.U.D.
    We will write no code before it's designed.

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to