Merge pull request #104 from laplaceyang/pr_remove_zmq_send_const

misuse of zmq_send_const
This commit is contained in:
Luca Boccassi 2016-12-15 14:35:28 +01:00 committed by GitHub
commit 6c9103433f

View File

@ -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)