mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-29 15:34:09 +02:00
reduce copy
This commit is contained in:
parent
28c7c8cfe7
commit
404b97212b
2
zmq.hpp
2
zmq.hpp
@ -622,7 +622,7 @@ namespace zmq
|
|||||||
|
|
||||||
inline size_t send (const void *buf_, size_t len_, int flags_ = 0)
|
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)
|
if (nbytes >= 0)
|
||||||
return (size_t) nbytes;
|
return (size_t) nbytes;
|
||||||
if (zmq_errno () == EAGAIN)
|
if (zmq_errno () == EAGAIN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user