We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 527a873 + 85b3a94 commit 3b1038dCopy full SHA for 3b1038d
zmq.hpp
@@ -1213,10 +1213,19 @@ class socket_base
1213
throw error_t();
1214
}
1215
1216
- template<typename T> bool send(T first, T last, int flags_ = 0)
+ template<typename T>
1217
+#ifdef ZMQ_CPP11
1218
+ ZMQ_DEPRECATED("from 4.4.1, use send taking message_t or buffer (for contiguous ranges), and send_flags")
1219
+#endif
1220
+ bool send(T first, T last, int flags_ = 0)
1221
{
1222
zmq::message_t msg(first, last);
- return send(msg, flags_);
1223
+ int nbytes = zmq_msg_send(msg.handle(), _handle, flags_);
1224
+ if (nbytes >= 0)
1225
+ return true;
1226
+ if (zmq_errno() == EAGAIN)
1227
+ return false;
1228
+ throw error_t();
1229
1230
1231
#ifdef ZMQ_HAS_RVALUE_REFS
0 commit comments