1. 06 Mar, 2015 1 commit
    • Wladimir J. van der Laan's avatar
      src/netbase.h: Fix endian in CNetAddr serialization · aac32053
      Wladimir J. van der Laan authored
      We've chosen to htons/ntohs explicitly on reading and writing
      (I do not know why). But as READWRITE already does an endian swap
      on big endian, this means the port number gets switched around,
      which was what we were trying to avoid in the first place. So
      to make this compatible, serialize it as FLATDATA.
      aac32053
  2. 19 Dec, 2014 1 commit
  3. 16 Dec, 2014 1 commit
  4. 02 Dec, 2014 1 commit
  5. 29 Oct, 2014 1 commit
  6. 06 Oct, 2014 1 commit
  7. 02 Sep, 2014 1 commit
  8. 01 Sep, 2014 1 commit
  9. 31 Aug, 2014 3 commits
    • Pieter Wuille's avatar
    • Kamil Domanski's avatar
      rework overhauled serialization methods to non-static · 84881f8c
      Kamil Domanski authored
      Thanks to Pieter Wuille for most of the work on this commit.
      I did not fixup the overhaul commit, because a rebase conflicted
      with "remove fields of ser_streamplaceholder".
      I prefer not to risk making a mistake while resolving it.
      84881f8c
    • Kamil Domanski's avatar
      overhaul serialization code · 3d796f89
      Kamil Domanski authored
      The implementation of each class' serialization/deserialization is no longer
      passed within a macro. The implementation now lies within a template of form:
      
      template <typename T, typename Stream, typename Operation>
      inline static size_t SerializationOp(T thisPtr, Stream& s, Operation ser_action, int nType, int nVersion) {
          size_t nSerSize = 0;
          /* CODE */
          return nSerSize;
      }
      
      In cases when codepath should depend on whether or not we are just deserializing
      (old fGetSize, fWrite, fRead flags) an additional clause can be used:
      bool fRead = boost::is_same<Operation, CSerActionUnserialize>();
      
      The IMPLEMENT_SERIALIZE macro will now be a freestanding clause added within
      class' body (similiar to Qt's Q_OBJECT) to implement GetSerializeSize,
      Serialize and Unserialize. These are now wrappers around
      the "SerializationOp" template.
      3d796f89
  10. 28 Aug, 2014 1 commit
    • Philip Kaufmann's avatar
      add missing header end comments · 093303a8
      Philip Kaufmann authored
      - ensures a consistent usage in header files
      - also add a blank line after the copyright header where missing
      - also remove orphan new-lines at the end of some files
      093303a8
  11. 20 Aug, 2014 1 commit
  12. 30 Jul, 2014 1 commit
  13. 17 Jul, 2014 2 commits
  14. 07 Jul, 2014 1 commit
  15. 23 Jun, 2014 1 commit
    • Cory Fields's avatar
      build: fix build weirdness after 54372482. · f3967bcc
      Cory Fields authored
      bitcoin-config.h moved, but the old file is likely to still exist when
      reconfiguring or switching branches. This would've caused files to not rebuild
      correctly, and other strange problems.
      
      Make the path explicit so that the old one cannot be found.
      
      Core libs use config/bitcoin-config.h.
      
      Libs (like crypto) which don't want access to bitcoin's headers continue
      to use -Iconfig and #include bitcoin-config.h.
      f3967bcc
  16. 31 May, 2014 1 commit
  17. 23 May, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Replace non-threadsafe strerror · a60838d0
      Wladimir J. van der Laan authored
      Log the name of the error as well as the error code if a network problem
      happens. This makes network troubleshooting more convenient.
      
      Use thread-safe strerror_r and the WIN32 equivalent FormatMessage.
      a60838d0
  18. 20 May, 2014 1 commit
  19. 09 May, 2014 1 commit
  20. 01 May, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Remove build-time no-IPv6 setting · e27c4110
      Wladimir J. van der Laan authored
      The year is 2014. All supported operating systems have IPv6 support,
      most certainly at build time (this doesn't mean that IPv6 is configured,
      of course).
      
      If noone is exercising the functionality to disable it, that means it
      doesn't get tested, and IMO it's better to get rid of it.
      
      (it's also not used consistently in RPC/boost and Net code...)
      e27c4110
  21. 10 Nov, 2013 1 commit
    • Brandon Dahler's avatar
      Cleanup code using forward declarations. · 51ed9ec9
      Brandon Dahler authored
      Use misc methods of avoiding unnecesary header includes.
      Replace int typedefs with int##_t from stdint.h.
      Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h.
      Normalize QT_VERSION ifs where possible.
      Resolve some indirect dependencies as direct ones.
      Remove extern declarations from .cpp files.
      51ed9ec9
  22. 20 Oct, 2013 1 commit
  23. 03 Oct, 2013 1 commit
  24. 06 Sep, 2013 1 commit
  25. 07 Oct, 2012 1 commit
    • Pieter Wuille's avatar
      Remove I2P support from netbase · 4e882b79
      Pieter Wuille authored
      I2P apparently needs 256 bits to store a fully routable address. Garlicat
      requires a centralized lookup service to map the 80-bit addresses to fully
      routable ones (as far as I understood), so that's not really usable in our
      situation.
      
      To support I2P routing and peer exchange for it, another solution is needed.
      This will most likely imply a network protocol change, and extension of the
      'addr' message.
      4e882b79
  26. 04 Oct, 2012 1 commit
    • Philip Kaufmann's avatar
      add LOCK() for proxy related data-structures · 81bbef26
      Philip Kaufmann authored
      - fix #1560 by properly locking proxy related data-structures
      - update GetProxy() and introduce GetNameProxy() to be able to use a
        thread-safe local copy from proxyInfo and nameproxyInfo
      - update usage of GetProxy() all over the source to match the new
        behaviour, as it now fills a full proxyType object
      - rename GetNameProxy() into HaveNameProxy() to be more clear
      81bbef26
  27. 12 Sep, 2012 1 commit
  28. 01 Aug, 2012 1 commit
  29. 22 Jun, 2012 2 commits
  30. 14 Jun, 2012 1 commit
    • Pieter Wuille's avatar
      Improve parsing of IPv6 addresses · 1e8aeae1
      Pieter Wuille authored
      Implement the following rules:
      * Interpret [X]:Y as host=X port=Y, if Y is an integer
      * Interpret X:Y as host=X port=Y, if Y is an integer and X contains no colon
      * Interpret X:Y as host=X:Y port=default otherwise
      1e8aeae1
  31. 31 May, 2012 1 commit
  32. 18 May, 2012 1 commit
    • Fordy's avatar
      Update License in File Headers · 3a25a2b9
      Fordy authored
      I originally created a pull to replace the "COPYING" in crypter.cpp and
      crypter.h, but it turned out that COPYING was actually the correct
      file.
      3a25a2b9
  33. 13 May, 2012 1 commit
  34. 11 May, 2012 3 commits