title: Can you call zmq_recv with a NULL buffer and 0 length to skip a message?
body: <p>I am using zmq (3.2) and am utilizing multipart messages. I am handling some error cases where the first message part is invalid and I want to discard the remaining parts. What I was thinking was something along the lines of.</p>
  
  <pre><code>void zmq_drain_multipart(void *sock)
  {
      int more;
      size_t size = sizeof(int);
      zmq_getsockopt(sock, ZMQ_RCVMORE, &amp;more, &amp;size);
      while (more)
      {
          zmq_recv(sock, NULL, 0, 0);
          zmq_getsockopt(sock, ZMQ_RCVMORE, &amp;more, &amp;size);
      }
  }
  </code></pre>
  
  <p>Is something like this supposed to work.</p>