Merge pull request #99 from laplaceyang/reduce_copy

reduce copy when send mem block
This commit is contained in:
Luca Boccassi 2016-12-08 14:08:19 +01:00 committed by GitHub
commit e2c1108672

View File

@ -622,7 +622,7 @@ namespace zmq
inline size_t send (const void *buf_, size_t len_, int flags_ = 0)
{
int nbytes = zmq_send (ptr, buf_, len_, flags_);
int nbytes = zmq_send_const (ptr, buf_, len_, flags_);
if (nbytes >= 0)
return (size_t) nbytes;
if (zmq_errno () == EAGAIN)