]> granicus.if.org Git - transmission/commit
(trunk libT) #3933 "announcer.c peer parsing could be simpler" -- fixed.
authorJordan Lee <jordan@transmissionbt.com>
Sat, 22 Jan 2011 17:45:54 +0000 (17:45 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 22 Jan 2011 17:45:54 +0000 (17:45 +0000)
commit75ffe999d47d41b39b01ed2f091f414a9dd8bb4c
tree338cbaaefa2374a036ec0cb6abf1827020b0f540
parent68130d9c4ea282bdde449e852ae5ff3e38728348
(trunk libT) #3933 "announcer.c peer parsing could be simpler" -- fixed.

Remove redundant code by using tr_peerMgrCompactToPex() and tr_peerMgrCompact6ToPex() to parse compact ipv4 and ipv6 peer lists. Simplify the old-style benc peer list parsing and fix a bug that returned too few bytes in the old-style peer array.
libtransmission/announcer.c
libtransmission/announcer.h
libtransmission/torrent.c