Merge pull request #90 from 0mp/master

Create a binding for zmq_msg_gets.
This commit is contained in:
Luca Boccassi
2016-11-15 23:00:14 +01:00
committed by GitHub

View File

@@ -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;