From 21a6bc572fa9c894abd40256f8c2b28e64fa3435 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 6 Dec 2006 18:21:37 +0000 Subject: [PATCH] routers for DHT --- library/pytorrent_core.cpp | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/library/pytorrent_core.cpp b/library/pytorrent_core.cpp index e55e2d48c..8868668b8 100755 --- a/library/pytorrent_core.cpp +++ b/library/pytorrent_core.cpp @@ -26,13 +26,6 @@ // The DHT capability requires UDP. We need to check that this port is in fact // open, just like the normal TCP port for bittorrent. // -// Wait for answers about what to do with the router.*torrent.com's... -// -//------------------ - - -//----------------- -// INCLUDES //----------------- #include @@ -988,12 +981,12 @@ static PyObject *torrent_start_DHT(PyObject *self, PyObject *args) M_ses->start_dht(); } -// M_ses->add_dht_router(std::make_pair(std::string("router.bittorrent.com"), -// DHT_ROUTER_PORT)); -// M_ses->add_dht_router(std::make_pair(std::string("router.utorrent.com"), -// DHT_ROUTER_PORT)); -//// M_ses->add_dht_router(std::make_pair(std::string("router.bitcomet.com"), -//// DHT_ROUTER_PORT)); + M_ses->add_dht_router(std::make_pair(std::string("router.bittorrent.com"), + DHT_ROUTER_PORT)); + M_ses->add_dht_router(std::make_pair(std::string("router.utorrent.com"), + DHT_ROUTER_PORT)); + M_ses->add_dht_router(std::make_pair(std::string("router.bitcomet.com"), + DHT_ROUTER_PORT)); Py_INCREF(Py_None); return Py_None; }