From 13f9c110789df67c10f223d02eb9ed8633f6b7c7 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sun, 13 Nov 2016 23:22:02 -0500 Subject: [PATCH] fix python binding --- bindings/python/src/alert.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/bindings/python/src/alert.cpp b/bindings/python/src/alert.cpp index d8e1b80f6..2d848ff68 100644 --- a/bindings/python/src/alert.cpp +++ b/bindings/python/src/alert.cpp @@ -517,6 +517,26 @@ void bind_alert() .def_readonly("socket_type", &listen_succeeded_alert::socket_type) ; +#ifndef TORRENT_NO_DEPRECATE + enum_("listen_succeded_alert_socket_type_t") + .value("tcp", listen_succeeded_alert::socket_type_t::tcp) + .value("tcp_ssl", listen_succeeded_alert::socket_type_t::tcp_ssl) + .value("udp", listen_succeeded_alert::socket_type_t::udp) + .value("i2p", listen_succeeded_alert::socket_type_t::i2p) + .value("socks5", listen_succeeded_alert::socket_type_t::socks5) + .value("utp_ssl", listen_succeeded_alert::socket_type_t::utp_ssl) + ; + + enum_("listen_failed_alert_socket_type_t") + .value("tcp", listen_failed_alert::socket_type_t::tcp) + .value("tcp_ssl", listen_failed_alert::socket_type_t::tcp_ssl) + .value("udp", listen_failed_alert::socket_type_t::udp) + .value("i2p", listen_failed_alert::socket_type_t::i2p) + .value("socks5", listen_failed_alert::socket_type_t::socks5) + .value("utp_ssl", listen_failed_alert::socket_type_t::utp_ssl) + ; +#endif + enum_("socket_type_t") .value("tcp", socket_type_t::tcp) .value("tcp_ssl", socket_type_t::tcp_ssl)