mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-25 01:19:09 +02:00
Merge pull request #90 from 0mp/master
Create a binding for zmq_msg_gets.
This commit is contained in:
commit
5fcd5cf29d
8
zmq.hpp
8
zmq.hpp
@ -372,6 +372,14 @@ namespace zmq
|
|||||||
return a == b;
|
return a == b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline const char* gets(const char *property_) const
|
||||||
|
{
|
||||||
|
const char* value = zmq_msg_gets (&msg, property);
|
||||||
|
if (value == NULL)
|
||||||
|
throw error_t ();
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// The underlying message
|
// The underlying message
|
||||||
zmq_msg_t msg;
|
zmq_msg_t msg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user