1. 26 Aug, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Split up util.cpp/h · a9a90ee0
      Wladimir J. van der Laan authored
      Split up util.cpp/h into:
      
      - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach)
      - money utilities (parsesmoney, formatmoney)
      - time utilities (gettime*, sleep, format date):
      - and the rest (logging, argument parsing, config file parsing)
      
      The latter is basically the environment and OS handling,
      and is stripped of all utility functions, so we may want to
      rename it to something else than util.cpp/h for clarity (Matt suggested
      osinterface).
      
      Breaks dependency of sha256.cpp on all the things pulled in by util.
      a9a90ee0
  2. 20 Aug, 2014 1 commit
  3. 08 Aug, 2014 1 commit
    • Philip Kaufmann's avatar
      small net cleanup · 15fa46db
      Philip Kaufmann authored
      - add comment for disabling sigpipe
      - add closing comment in compat.h
      - remove redundant check in net.h
      15fa46db
  4. 30 Jul, 2014 2 commits
  5. 17 Jul, 2014 2 commits
  6. 07 Jul, 2014 3 commits
  7. 26 Jun, 2014 1 commit
    • Huang Le's avatar
      Use async name resolving to improve net thread responsiveness · 230a0751
      Huang Le authored
      
      In the LookupIntern(), things changed are:
      
        1. Call getaddrinfo_a() instead of getaddrinfo() if available, the former is a sync version of the latter;
        2. Try using inet_pton()/inet_addr() to convert the input text to a network addr structure at first, if success the extra name resolving thread inside getaddrinfo_a() could be avoided;
        3.  An interruption point added in the waiting loop for return from getaddrinfo_a(), which completes the improve for thread responsiveness.
      
      A easy way to see the effect is to kick off a 'bitcoind stop' immediately after 'bitcoind -daemon', before the change it would take several, or even tens of, minutes on a bad network situation to wait for the running bitcoind to exit, now it costs only seconds.
      Signed-off-by: default avatarHuang Le <4tarhl@gmail.com>
      230a0751
  8. 24 Jun, 2014 1 commit
  9. 23 May, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Replace non-threadsafe strerror · 7b6bdce5
      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.
      7b6bdce5
  10. 20 May, 2014 1 commit
  11. 09 May, 2014 2 commits
  12. 01 May, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Remove build-time no-IPv6 setting · 5300cb18
      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...)
      5300cb18
  13. 10 Apr, 2014 1 commit
  14. 10 Feb, 2014 1 commit
  15. 23 Jan, 2014 1 commit
    • Wladimir J. van der Laan's avatar
      Remove redundant .c_str()s · 654da649
      Wladimir J. van der Laan authored
      After the tinyformat switch sprintf() family functions support passing
      actual std::string objects.
      
      Remove unnecessary c_str calls (236 of them) in logging and formatting.
      654da649
  16. 15 Nov, 2013 1 commit
  17. 11 Nov, 2013 1 commit
  18. 10 Nov, 2013 1 commit
    • Brandon Dahler's avatar
      Cleanup code using forward declarations. · e28f37ca
      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.
      e28f37ca
  19. 20 Oct, 2013 1 commit
  20. 04 Oct, 2013 1 commit
  21. 18 Sep, 2013 1 commit
  22. 06 Sep, 2013 1 commit
  23. 17 Jul, 2013 1 commit
  24. 27 Apr, 2013 1 commit
  25. 18 Dec, 2012 1 commit
  26. 09 Nov, 2012 1 commit
  27. 07 Oct, 2012 2 commits
    • Pieter Wuille's avatar
      Remove I2P support from netbase · 3f2ebf20
      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.
      3f2ebf20
    • Wladimir J. van der Laan's avatar
      get rid of strlcpy.h · 7889cc2c
      Wladimir J. van der Laan authored
      Don't use hand-rolled string manipulation routine with a fixed
      buffer in the bitcoin core, instead make use of c++ strings and boost.
      7889cc2c
  28. 04 Oct, 2012 1 commit
    • Philip Kaufmann's avatar
      add LOCK() for proxy related data-structures · c8439b3b
      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
      c8439b3b
  29. 18 Sep, 2012 1 commit
  30. 12 Sep, 2012 1 commit
  31. 01 Aug, 2012 1 commit
  32. 07 Jul, 2012 1 commit
  33. 22 Jun, 2012 2 commits