From 8846fe4b93460d4b1608c02c2d94bdace8ec5ae9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 15 Dec 2010 08:30:04 +0000 Subject: [PATCH] one more python type converter --- bindings/python/client.py | 1 + bindings/python/src/alert.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/bindings/python/client.py b/bindings/python/client.py index c8898bedd..ab3c3a2be 100755 --- a/bindings/python/client.py +++ b/bindings/python/client.py @@ -225,6 +225,7 @@ def main(): ses.listen_on(options.port, options.port + 10) ses.set_settings(settings) # ses.set_severity_level(lt.alert.severity_levels.info) + ses.set_alert_mask(0xfffffff) ses.add_extension(lt.create_ut_pex_plugin) ses.add_extension(lt.create_ut_metadata_plugin) ses.add_extension(lt.create_metadata_plugin) diff --git a/bindings/python/src/alert.cpp b/bindings/python/src/alert.cpp index 619f456a0..f2741d51c 100644 --- a/bindings/python/src/alert.cpp +++ b/bindings/python/src/alert.cpp @@ -21,11 +21,17 @@ struct endpoint_to_python { return incref(make_tuple(ep.address().to_string(), ep.port()).ptr()); } + + static PyObject* convert(udp::endpoint const& ep) + { + return incref(make_tuple(ep.address().to_string(), ep.port()).ptr()); + } }; void bind_alert() { to_python_converter(); + to_python_converter(); using boost::noncopyable;