| 1922 | |
| 1923 | ZMQ_CPP11_DEPRECATED("from 4.3.1, use send taking a const_buffer and send_flags") |
| 1924 | size_t send(const void *buf_, size_t len_, int flags_ = 0) |
| 1925 | { |
| 1926 | int nbytes = zmq_send(_handle, buf_, len_, flags_); |
| 1927 | if (nbytes >= 0) |
| 1928 | return static_cast<size_t>(nbytes); |
| 1929 | if (zmq_errno() == EAGAIN) |
| 1930 | return 0; |
| 1931 | throw error_t(); |
| 1932 | } |
| 1933 | |
| 1934 | ZMQ_CPP11_DEPRECATED("from 4.3.1, use send taking message_t and send_flags") |
| 1935 | bool send(message_t &msg_, |