Skip to content

Commit

Permalink
Merge pull request #75 from K0n63n/master
Browse files Browse the repository at this point in the history
Class for multipart messaging
  • Loading branch information
c-rack committed Apr 6, 2016
2 parents 68a7b09 + e7c2093 commit 0db7521
Show file tree
Hide file tree
Showing 2 changed files with 473 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zmq.hpp
Expand Up @@ -351,6 +351,14 @@ namespace zmq
return static_cast<T const*>( data() );
}

inline bool equal(const message_t* other) const ZMQ_NOTHROW
{
if (size() != other->size())
return false;
std::string a(data<char>(), size());
std::string b(other->data<char>(), other->size());
return a == b;
}

private:
// The underlying message
Expand Down

0 comments on commit 0db7521

Please sign in to comment.