diff --git a/src/ctx.nobj.lua b/src/ctx.nobj.lua index 246b653..3f22117 100644 --- a/src/ctx.nobj.lua +++ b/src/ctx.nobj.lua @@ -36,5 +36,11 @@ typedef struct ZMQ_Ctx ZMQ_Ctx; method "socket" { c_method_call "!ZMQ_Socket *" "zmq_socket" { "int", "type"} }, + method "set" { + c_method_call "int" "zmq_ctx_set" { "int", "flag", "int", "value" } + }, + method "get" { + c_method_call "int" "zmq_ctx_get" { "int", "flag" } + }, } diff --git a/zmq.nobj.lua b/zmq.nobj.lua index 2aecadb..e46193c 100644 --- a/zmq.nobj.lua +++ b/zmq.nobj.lua @@ -118,6 +118,10 @@ c_source "typedefs" [[ export_definitions { MAX_VSM_SIZE = "ZMQ_MAX_VSM_SIZE", +-- context settings +MAX_SOCKETS = "ZMQ_MAX_SOCKETS", +IO_THREADS = "ZMQ_IO_THREADS", + -- message types DELIMITER = "ZMQ_DELIMITER", VSM = "ZMQ_VSM",