summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-04-11 07:59:03 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-04-11 07:59:03 +0200
commit6fea42258348c8489d2cd64ca0e92981148134f8 (patch)
tree87e2590386ac68ba033b23a044adb0db0a7612bd /include
parentb668387d917cd80c5d4b9631bc0008b6a014c083 (diff)
getsockopt added to c++ binding
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_);