summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/zmq.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/zmq.hpp b/include/zmq.hpp
index 63d2835..d19f642 100644
--- a/include/zmq.hpp
+++ b/include/zmq.hpp
@@ -219,6 +219,14 @@ namespace zmq
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_)
{
int rc = zmq_bind (ptr, addr_);