added minimal binding for peer_connection

This commit is contained in:
Daniel Wallin 2007-01-10 16:54:55 +00:00
parent ce3bb57e61
commit ba44509c2a
1 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <libtorrent/extensions.hpp>
#include <libtorrent/entry.hpp>
#include <libtorrent/peer_request.hpp>
#include <libtorrent/peer_connection.hpp>
#include <boost/python.hpp>
#include "gil.hpp"
@ -21,7 +22,7 @@ namespace
lock_gil lock;
if (override f = this->get_override("new_connection"))
return f(p);
return f(ptr(p));
return torrent_plugin::new_connection(p);
}
@ -135,5 +136,8 @@ void bind_extensions()
"on_resume"
, &torrent_plugin::on_resume, &torrent_plugin_wrap::default_on_resume
);
// TODO move to it's own file
class_<peer_connection, boost::noncopyable>("peer_connection", no_init);
}