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.
1 parent d25c58a commit 85b3a94Copy full SHA for 85b3a94
zmq.hpp
@@ -1146,10 +1146,19 @@ class socket_base
1146
throw error_t();
1147
}
1148
1149
- template<typename T> bool send(T first, T last, int flags_ = 0)
+ template<typename T>
1150
+#ifdef ZMQ_CPP11
1151
+ ZMQ_DEPRECATED("from 4.4.1, use send taking message_t or buffer (for contiguous ranges), and send_flags")
1152
+#endif
1153
+ bool send(T first, T last, int flags_ = 0)
1154
{
1155
zmq::message_t msg(first, last);
- return send(msg, flags_);
1156
+ int nbytes = zmq_msg_send(msg.handle(), _handle, flags_);
1157
+ if (nbytes >= 0)
1158
+ return true;
1159
+ if (zmq_errno() == EAGAIN)
1160
+ return false;
1161
+ throw error_t();
1162
1163
1164
#ifdef ZMQ_HAS_RVALUE_REFS
0 commit comments