| 2002 | ZMQ_CPP11_DEPRECATED( |
| 2003 | "from 4.3.1, use recv taking a mutable_buffer and recv_flags") |
| 2004 | size_t recv(void *buf_, size_t len_, int flags_ = 0) |
| 2005 | { |
| 2006 | int nbytes = zmq_recv(_handle, buf_, len_, flags_); |
| 2007 | if (nbytes >= 0) |
| 2008 | return static_cast<size_t>(nbytes); |
| 2009 | if (zmq_errno() == EAGAIN) |
| 2010 | return 0; |
| 2011 | throw error_t(); |
| 2012 | } |
| 2013 | |
| 2014 | ZMQ_CPP11_DEPRECATED( |
| 2015 | "from 4.3.1, use recv taking a reference to message_t and recv_flags") |