mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 18:40:28 +01:00
Merge pull request #104 from laplaceyang/pr_remove_zmq_send_const
misuse of zmq_send_const
This commit is contained in:
commit
6c9103433f
4
zmq.hpp
4
zmq.hpp
@ -624,11 +624,7 @@ namespace zmq
|
||||
|
||||
inline size_t send (const void *buf_, size_t len_, int flags_ = 0)
|
||||
{
|
||||
#if ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 0, 8)
|
||||
int nbytes = zmq_send_const (ptr, buf_, len_, flags_);
|
||||
#else
|
||||
int nbytes = zmq_send (ptr, buf_, len_, flags_);
|
||||
#endif
|
||||
if (nbytes >= 0)
|
||||
return (size_t) nbytes;
|
||||
if (zmq_errno () == EAGAIN)
|
||||
|
Loading…
Reference in New Issue
Block a user