From 7a5db6041f4f11ed502fa7446da900509dedb00f Mon Sep 17 00:00:00 2001 From: malosek Date: Wed, 16 Sep 2009 12:22:36 +0200 Subject: added newly added socket options to all language bindings, P2P model changed to PUB/SUB for throughput tests --- python/pyzmq.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'python/pyzmq.cpp') 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 -- cgit v1.2.3