diff options
author | malosek <malosek@fastmq.com> | 2009-09-16 12:22:36 +0200 |
---|---|---|
committer | malosek <malosek@fastmq.com> | 2009-09-16 12:22:36 +0200 |
commit | 7a5db6041f4f11ed502fa7446da900509dedb00f (patch) | |
tree | 6f96beb5f647a3ac296be2f24a2f675880f6b8a7 /python | |
parent | 9c522dccaf0b2c8074bd96fbfb4c968f45748ba4 (diff) |
added newly added socket options to all language bindings, P2P model changed to PUB/SUB for throughput tests
Diffstat (limited to 'python')
-rw-r--r-- | python/pyzmq.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/python/pyzmq.cpp b/python/pyzmq.cpp index 93b8b8f..c550eb5 100644 --- a/python/pyzmq.cpp +++ b/python/pyzmq.cpp @@ -453,7 +453,7 @@ PyMODINIT_FUNC initlibpyzmq () PyObject *dict = PyModule_GetDict (module); assert (dict); - PyObject *t; + PyObject *t; t = PyInt_FromLong (ZMQ_NOBLOCK); PyDict_SetItemString (dict, "NOBLOCK", t); Py_DECREF (t); @@ -489,7 +489,23 @@ PyMODINIT_FUNC initlibpyzmq () Py_DECREF (t); t = PyInt_FromLong (ZMQ_IDENTITY); PyDict_SetItemString (dict, "IDENTITY", t); + Py_DECREF (t); + t = PyInt_FromLong (ZMQ_SUBSCRIBE); + PyDict_SetItemString (dict, "SUBSCRIBE", t); + Py_DECREF (t); + t = PyInt_FromLong (ZMQ_UNSUBSCRIBE); + PyDict_SetItemString (dict, "UNSUBSCRIBE", t); + Py_DECREF (t); + t = PyInt_FromLong (ZMQ_RATE); + PyDict_SetItemString (dict, "RATE", t); Py_DECREF (t); + t = PyInt_FromLong (ZMQ_RECOVERY_IVL); + PyDict_SetItemString (dict, "RECOVERY_IVL", t); + Py_DECREF (t); + t = PyInt_FromLong (ZMQ_MCAST_LOOP); + PyDict_SetItemString (dict, "MCAST_LOOP", t); + Py_DECREF (t); + } #if defined _MSC_VER |