Create a binding for zmq_msg_gets.

Additionally, I've changed some tabs to spaces and remove trailing
spaces.
This commit is contained in:
Mateusz Piotrowski 2016-11-15 22:00:15 +01:00
parent 4648ebc964
commit 570ff93ea9

View File

@ -372,6 +372,14 @@ namespace zmq
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:
// The underlying message
zmq_msg_t msg;