Overview Tutorial API reference Examples Build Download ZmqMessage 0.1 - 21 Oct 2011

Word on Text and Binary modes


Text and Binary modes determine how raw ZMQ message content is converted into user type, when message content is extracted from Incoming, inserted into Outgoing, or we iterate over incoming multipart message.

Binary: message content pointer is interpreted as pointer to user type, and assign operator is invoked. This mode is suitable for implementing binary protocols.

Text: message content is interpreted as char array. For string types (see ZMQMESSAGE_STRING_CLASS on string concept definition) we initialize object from char array, for other types we put (>>) chars into stringstream and read stream into instance of type.

How to set:


ZmqMessage 0.1 — open source software, support@zmqmessage.org