From 2d438e07586d9796e83ab0a81767d75488042f5f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 29 Sep 2014 06:10:22 +0000 Subject: [PATCH] factor out parse_tracker_response and add unit tests. make gen_todo cover tests also, and regenerate todo.html --- docs/gen_todo.py | 2 +- docs/todo.html | 1678 ++++++++++++----- .../libtorrent/http_tracker_connection.hpp | 6 +- include/libtorrent/lazy_entry.hpp | 3 +- include/libtorrent/tracker_manager.hpp | 28 + src/http_tracker_connection.cpp | 167 +- test/test_tracker.cpp | 162 ++ 7 files changed, 1506 insertions(+), 540 deletions(-) diff --git a/docs/gen_todo.py b/docs/gen_todo.py index 418be2db4..51660d3bc 100644 --- a/docs/gen_todo.py +++ b/docs/gen_todo.py @@ -1,7 +1,7 @@ import glob import os -paths = ['src/*.cpp', 'src/kademlia/*.cpp', 'include/libtorrent/*.hpp', 'include/libtorrent/kademlia/*.hpp', 'include/libtorrent/aux_/*.hpp', 'include/libtorrent/extensions/*.hpp'] +paths = ['test/*.cpp', 'src/*.cpp', 'src/kademlia/*.cpp', 'include/libtorrent/*.hpp', 'include/libtorrent/kademlia/*.hpp', 'include/libtorrent/aux_/*.hpp', 'include/libtorrent/extensions/*.hpp'] os.system('(cd .. ; ctags %s 2>/dev/null)' % ' '.join(paths)) diff --git a/docs/todo.html b/docs/todo.html index a16d9fbaa..12356edeb 100644 --- a/docs/todo.html +++ b/docs/todo.html @@ -21,16 +21,68 @@

libtorrent todo-list

-3 urgent -15 important -20 relevant +4 urgent +18 important +22 relevant 9 feasible -88 notes -
relevance 4../src/session_impl.cpp:480in order to support SSL over uTP, the utp_socket manager either needs to be able to receive packets on multiple ports, or we need to peek into the first few bytes the payload stream of a socket to determine whether or not it's an SSL connection. (The former is simpler but won't do as well with NATs)