mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-28 15:14:12 +02:00
misuse of zmq_send_const
This commit is contained in:
parent
3431f6882a
commit
eff9bcb6e8
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…
x
Reference in New Issue
Block a user