Permalink
Commits on Jun 21, 2016
Commits on Dec 7, 2015
  1. 'extern c' to use in c++

    FalseCAM committed with Oct 8, 2015
Commits on Aug 19, 2015
  1. Typo in documentation.

    Erkan-Yilmaz committed with Aug 18, 2015
  2. Removed extra "strlen" function.

    Minor optimization.
    raspopov committed with May 30, 2015
Commits on Jun 8, 2015
  1. Don't include <sys/time.h> under MSVC.

    Are they gratuitiously trying to be annoying?
    committed Jun 8, 2015
Commits on May 31, 2015
  1. Include <sys/time.h> under Windows.

    This fixes building with MinGW.
    committed May 31, 2015
Commits on May 19, 2015
  1. Improve compilation on Windows

    MSVC doesn't provide unistd.h and sys/time.h. Another header, fcntl.h,
    althought provided is not used during compilation.
    
    MSVC doesn't provide w32api.h header (and WindowsXP macro), but it is
    safe to assume that 0x0501 will represent Windows XP for the time being.
    Also, MSVC and MinGW define both WINVER and (newer) _WIN32_WINNT macros
    (and also NTDDI_VERSION, but that's whole other story), so both should
    be overridden to support Windows XP.
    
    MSVC and MinGW define their own EAFNOSUPPORT macro, which leads to
    redefinition warning.
    
    MSVC and MinGW provide declaration (and Windows provides implementation)
    of inet_ntop function starting with Windows Vista.
    
    MSVC doesn't provide snprintf function, but has _snprintf instead with
    same signature and purpose.
    
    Tested on Windows 7 with MSVC 2013 and MinGW 4.9.2, defining _WIN32_WINNT
    and WINVER to 0x0501 and 0x0600.
    mikedld committed with Dec 5, 2014
Commits on May 18, 2015
  1. Update CHANGES for 0.24.

    committed May 18, 2015
  2. Fix off-by-one when checking size of nodes.

    This would prevent find_nodes replies with exactly 16 nodes from being
    taken into account.  While this violates BEP-5 (which requires no more
    than 8), this is apparently being done by the good folks at BitTorrent.
    
    Thanks to Tomas Brod.
    committed May 18, 2015
Commits on May 15, 2015
  1. Update CHANGES for 0.23.

    committed May 15, 2015
  2. Increase amount of parsed nodes in replies to 16.

    Reported by Tomas Brod.
    committed May 15, 2015
  3. Avoid memory leak on initialisation failure.

    Reported by 3null.
    committed May 15, 2015
  4. Make bucket->time a time_t.

    Reported by Gwiz65.
    committed May 15, 2015
Commits on Sep 4, 2014
  1. Use _WIN32 instead of WIN32 to check for Windows

    MinGW defines both _WIN32 and WIN32 (and may even be the only compiler
    doing so). Microsoft and Intel compilers only define _WIN32. Use the
    common one to eliminate the need in defining WIN32 explicitly.
    mikedld committed with Jun 15, 2014
Commits on May 3, 2014
  1. Update CHANGES for 0.22.

    committed May 3, 2014
Commits on May 2, 2014
  1. Fix typo: incorrect constant in callback.

    Thanks to Moritz Warning.
    committed May 2, 2014
  2. Consult local storage when performing a search.

    The likelihood of this triggerring in a fully grown DHT is vanishingly
    small, but people are running modified versions of this code in
    private DHTs.
    committed May 2, 2014
  3. Add const to parameters of DHT callback.

    This is an incompatible API change.
    committed May 2, 2014
Commits on Apr 13, 2014
  1. Don't flush debug stream if debugging is disabled.

    Thanks to x190.
    committed Apr 13, 2014
Commits on Jul 25, 2011
  1. Avoid warning.

    committed Jul 25, 2011
  2. Update CHANGES.

    committed Jul 25, 2011
  3. Add blacklist callback.

    committed Jul 25, 2011
  4. Move stuff around.

    committed Jul 25, 2011
  5. Don't send stuff to blacklisted nodes.

    The internal blacklist was only used on reception, which is okay
    since it's supposed to trigger very seldom.  If we're ever going
    to use it for other purposes, we should make it more general.
    committed Jul 25, 2011
Commits on Jul 6, 2011
  1. Update CHANGES.

    committed Jul 6, 2011
  2. Rename our definition of memmem to dht_memmem.

    This is needed in order to compile on systems that actually have memmem
    but don't define HAVE_MEMMEM.
    committed Jul 6, 2011
Commits on Apr 30, 2011
  1. Update CHANGES.

    committed Apr 30, 2011
  2. Fix parsing of DHT announces.

    We were ignoring the explicit port number, taking the sender's UDP port
    instead.  Thanks to cjdelisle.
    committed Apr 30, 2011
  3. Relax rate limiting.

    Allow bursts of up to 400 packets.
    committed Apr 30, 2011
Commits on Jan 20, 2011
  1. Update CHANGES for 0.18.

    committed Jan 20, 2011