Commit Graph

109 Commits

Author SHA1 Message Date
Juliusz Chroboczek 0d8c10716c Use the dht-0.16 API in tr-dht.c.
Recvfrom is now done outside the dht code, which makes it possible to share
the socket with UTP.
2011-01-09 21:48:43 +00:00
Juliusz Chroboczek abcd56c034 Move creation of the UDP sockets to tr-udp.c. 2011-01-09 21:48:36 +00:00
Juliusz Chroboczek 5b2948cd17 Improve error messages in tr-dht.c. 2011-01-08 02:12:23 +00:00
Juliusz Chroboczek fe2fd2efcf Avoid a descriptor leak when binding the IPv6 DHT socket fails. 2011-01-08 01:09:12 +00:00
Charles Kerr e5bb3205a1 (trunk) Join the 21st century and use only 1 space at the end sentences. This commit is nearly as important as the semi-annual ones that remove trailing spaces from the ends of lines of code... :) 2010-12-27 19:18:17 +00:00
Charles Kerr ae84dc70dd (trunk libT) #3836 "libevent2 support" -- finish moving to the libevent2 API mode. don't include the backwards-compatable API headers. 2010-12-24 08:58:41 +00:00
Charles Kerr 345b14adbc (trunk) #3836 "libevent2 support" -- bump libevent2 requirement to 2.0.10. This will break the Mac build for a minute intil BMW applies his Mac patch 2010-12-20 02:07:51 +00:00
Charles Kerr 8e548aafcb (trunk libT) #3687 "The V=XXXX key/val pair in our DHT messages seems to have no purpose" -- removed. 2010-10-30 01:48:45 +00:00
Daniel Lee 3f8748edfc change 'v' field in dht to use major/minor version instead of svn revision 2010-10-13 17:09:05 +00:00
Charles Kerr 56e90f1457 (trunk) more "svn propset" tweaks for $Id$ 2010-10-01 20:22:51 +00:00
Charles Kerr 5a8c94cfe4 (trunk libT) #3382 "2.01+ (10919) hangs after launch" -- fixed. 2010-07-01 16:09:47 +00:00
Charles Kerr 954a309d8f (trunk) #3311 "MingW build of Transmission" -- apply more of rb07's diffs, though edited to lessen the inevitable #ifdefs 2010-06-30 21:24:36 +00:00
Charles Kerr 5ad7ed550f (trunk) more win32 fixes from rb07 in #3311 2010-06-22 00:12:52 +00:00
Charles Kerr 08628333d1 (trunk libT) part of rb07's win32 portability patches from ticket #3311 2010-06-21 16:44:35 +00:00
Mitchell Livingston ec687f14ad #2738 Fix the IPv6 DHT broken by r10616 2010-05-02 12:48:33 +00:00
Charles Kerr 94a2ffac2b (trunk libT) commit jch's patch for #2738: "fix rebinding of the IPv DHT socket" 2010-05-01 19:55:45 +00:00
Charles Kerr 546bca723b (trunk libT) #3159 "better decision-making when choosing which peers to initiate new connections with" -- experimental commit 2010-04-20 21:54:03 +00:00
Charles Kerr 5af66dffcd (trunk libT) #3104 "tr-dht.c: signed port number" -- fixed in trunk for 2.00 2010-03-31 18:52:07 +00:00
Charles Kerr e31b9d8fc5 (trunk libT) #2903 "Don't send DHT port messages to peers if we didn't advertise support for DHT in the handshake" -- fixed in trunk for 1.90 2010-02-14 19:35:09 +00:00
Charles Kerr e03ad192c7 (trunk libT) demote the "Got N peers from tracker" and "Found N peers from DHT" messages from info to debug... there are just too many of them 2010-02-11 01:20:43 +00:00
Charles Kerr 6f68e30f37 (trunk libT) consistency tweak: rename tr_global{Lock,Unlock,IsLocked} as tr_session{Lock,Unlock,IsLocked} 2010-01-04 09:05:02 +00:00
Charles Kerr 283b6d6a36 (trunk libT) rename tr_wait() tr_wait_msec() 2010-01-01 22:30:36 +00:00
Charles Kerr 08af516e12 (trunk libT) unset DHT's ip4 and ip6 sockets on shutdown so that the libtransmission thread doesn't block on tr_dhtStatus() during shutdown 2010-01-01 22:28:50 +00:00
Charles Kerr 1eb0cdd7c6 (trunk libT) fix various minor compiler warnings that show up when you build libtransmission with NDEBUG defined 2009-12-28 23:27:17 +00:00
Charles Kerr de9498f1ab (trunk libT) #2669 "Apply IPV6_V6ONLY to the IPv6 DHT socket" -- committed jch's patch for 1.80 2009-12-15 16:48:26 +00:00
Charles Kerr 8cee197cac (trunk libT) fix minor memory leak in libtransmission/tr-dht.c, found by valgrind 2009-12-14 17:46:00 +00:00
Charles Kerr ed1df8beac (trunk libT) removed dead code: tr_isTimeval(), tr_timevalMsec(), tr_timevalSet() 2009-12-12 01:05:29 +00:00
Charles Kerr 1f320b2ddd (trunk) fix a couple of cases where we don't use the tr_snprintf() portability wrapper 2009-12-11 20:26:40 +00:00
Charles Kerr 33658647d6 (trunk libT) #2576 "IPv6 support for DHT (BEP #32)" -- silence message "IPv6 DHT not ready." Reported by KyleK; fixed by jch 2009-11-29 18:31:36 +00:00
Charles Kerr fc0a8b7c93 (trunk) #2614: "incorrect memory usage when not using IPv6" -- accepted dht.c + tr-dht.c patches 2009-11-27 14:18:32 +00:00
Charles Kerr 1cbbcf9fa1 (trunk libT) jch's patches 0001 through 0004 for ticket #2576, IPv6 support for DHT (BEP #32) 2009-11-24 01:59:51 +00:00
Charles Kerr 06004319d7 (trunk) #2222: revert r8967, as foreshadowed in http://trac.transmissionbt.com/ticket/2222#comment:20 2009-11-14 14:43:31 +00:00
Mitchell Livingston dd5fa2e6b8 more typo fixes 2009-11-04 02:45:58 +00:00
Mitchell Livingston 77d7a53181 fix typo 2009-11-02 01:40:26 +00:00
Charles Kerr 3680896a19 (trunk libT) #2508 atom->port never updated 2009-10-29 16:10:03 +00:00
Charles Kerr 858e691381 (trunk libT) add a wrapper function, tr_netCloseSocket(), around EVUTIL_CLOSESOCKET() so that not all of our code has to #include evutil 2009-10-27 20:27:27 +00:00
Charles Kerr 00197cc461 (trunk libT) undo today's earlier commit r9381 for #2508 -- looks like I introduced a bug into the patch. 2009-10-22 19:08:45 +00:00
Charles Kerr bb541fc8d6 (trunk libT) #2508: atom->port never updated 2009-10-22 15:05:56 +00:00
Charles Kerr 6a2de9864d fix --disable-dht error in 1.74 reported by DimStar 2009-08-25 13:55:32 +00:00
Charles Kerr e7a4ee9d82 (trunk) un-remove the conditional DHT compiling for now for reasons discussed @ http://lists.opensuse.org/opensuse-gnome/2009-08/msg00033.html. I'll re-remove it for 1.80. :) 2009-08-18 16:02:16 +00:00
Charles Kerr bf1a544939 (trunk) all this commit does is remove trailing whitespace from some c, c++, and javascript source 2009-08-12 14:40:32 +00:00
Charles Kerr 6fd19fa096 (trunk) remove the option to build without DHT. This is because of new & improved information wrt ticket #2222 2009-08-10 16:09:25 +00:00
Charles Kerr 5d1f1eb8ce (trunk libT) committed patfch from gornack (proofed by juliusz) for ticket #2312 to use the bind-address-ipv4 setting in the DHT announce 2009-08-07 14:47:46 +00:00
Charles Kerr 1419d4b8a1 (trunk libT) #2281: add logging related to DHT (Patch from Juliusz) 2009-08-07 14:38:09 +00:00
Charles Kerr 39330501e4 (trunk) #2222: Make DHT support a compile-time option, enabled by default 2009-06-21 08:57:26 +00:00
Charles Kerr 1be7f51b3d (trunk libT) simplify the evtimer / struct timeval code a little 2009-06-15 03:24:40 +00:00
Charles Kerr a2b9fcc592 (trunk libT) possible fix for #2078: Assertion failed: (tv->tv_usec >= 0) 2009-06-12 23:01:35 +00:00
Charles Kerr 4c02edf6d4 (trunk libT) fix a minor tr-dht memory leak found by valgrind. 2009-06-03 23:42:13 +00:00
Charles Kerr 9238fb0299 (trunk) #2131: clean up benc read/write API 2009-06-02 01:48:48 +00:00
Charles Kerr 6508dc3a3d (trunk libT) #2146: Incorrect maintenance of dhtAnnounceInProgress 2009-06-01 18:24:30 +00:00
Charles Kerr 7c6fbfb80f (trunk libT) fix a couple of dead assignments, and a possible null pointer dereference, found by clang 2009-05-22 19:03:00 +00:00
Charles Kerr 9d1ea6eb6b (trunk libT) tweak tr-dht a little 2009-05-20 15:56:58 +00:00
Charles Kerr 70bd50ff7f (trunk libT) futz around with tr-dht.c a bit 2009-05-20 04:08:58 +00:00
Charles Kerr 52991d7ee7 bah, that last commit was wrong 2009-05-20 03:58:15 +00:00
Charles Kerr e904ea732c (trunk libT) modified transmission-dht-20090619.patch 2009-05-20 03:55:09 +00:00
Charles Kerr 8f3660c334 (trunk libT) fix event_callback() error in tr-dht.c 2009-05-19 20:42:01 +00:00
Charles Kerr 5a9c945dbb (trunk libT) remove some dead code from tr-dht.c 2009-05-19 19:39:56 +00:00
Charles Kerr 54202fca79 (trunk libT) add Juliusz' provide-node-count.patch patch 2009-05-19 19:05:34 +00:00
Charles Kerr 3d7cc36424 (trunk) #7: DHT support. This is a work in progress... no gui/rpc support yet 2009-05-19 18:38:26 +00:00