NZMQT_INLINE QList<QByteArray> ZMQSocket::receiveMessage(ReceiveFlags flags_) { QList<QByteArray> parts; ZMQMessage msg; while (receiveMessage(&msg, flags_)) { parts += msg.toByteArray(); msg.rebuild(); if (!hasMoreMessageParts()) break; } return parts; }
// Receives a message. // The message is represented as a list of byte arrays representing // a message's parts. If the message is not a multi-part message the // list will only contain one array. inline QList<QByteArray> receiveMessage() { QList<QByteArray> parts; ZMQMessage msg; while (receiveMessage(&msg)) { parts += msg.toByteArray(); msg.rebuild(); if (!hasMoreMessageParts()) break; } return parts; }