Commit 6fea4225 authored by Martin Sustrik's avatar Martin Sustrik

getsockopt added to c++ binding

parent b668387d
...@@ -219,6 +219,14 @@ namespace zmq ...@@ -219,6 +219,14 @@ namespace zmq
throw error_t (); throw error_t ();
} }
inline void getsockopt (int option_, void *optval_,
size_t *optvallen_)
{
int rc = zmq_getsockopt (ptr, option_, optval_, optvallen_);
if (rc != 0)
throw error_t ();
}
inline void bind (const char *addr_) inline void bind (const char *addr_)
{ {
int rc = zmq_bind (ptr, addr_); int rc = zmq_bind (ptr, addr_);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment