summaryrefslogtreecommitdiff
path: root/src/xs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xs.cpp')
-rw-r--r--src/xs.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xs.cpp b/src/xs.cpp
index 8fc8dd2..ad5bd97 100644
--- a/src/xs.cpp
+++ b/src/xs.cpp
@@ -169,6 +169,17 @@ int xs_term (void *ctx_)
return rc;
}
+int xs_setctxopt (void *ctx_, int option_, const void *optval_,
+ size_t optvallen_)
+{
+ if (!ctx_ || !((xs::ctx_t*) ctx_)->check_tag ()) {
+ errno = EFAULT;
+ return -1;
+ }
+
+ return ((xs::ctx_t*) ctx_)->setctxopt (option_, optval_, optvallen_);
+}
+
void *xs_socket (void *ctx_, int type_)
{
if (!ctx_ || !((xs::ctx_t*) ctx_)->check_tag ()) {