mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-03 10:01:23 +02:00
Merge pull request #125 from msune/master
Fix rvalue for socket::send() on EHOSTUNREACH
This commit is contained in:
commit
fc990f1419
4
zmq.hpp
4
zmq.hpp
@ -631,6 +631,8 @@ namespace zmq
|
||||
return (size_t) nbytes;
|
||||
if (zmq_errno () == EAGAIN)
|
||||
return 0;
|
||||
if (zmq_errno () == EHOSTUNREACH)
|
||||
return 0;
|
||||
throw error_t ();
|
||||
}
|
||||
|
||||
@ -641,6 +643,8 @@ namespace zmq
|
||||
return true;
|
||||
if (zmq_errno () == EAGAIN)
|
||||
return false;
|
||||
if (zmq_errno () == EHOSTUNREACH)
|
||||
return false;
|
||||
throw error_t ();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user