Add another CNetAddr constructor which accepts boost::asio::ip::address #4303

pull 4tar wants to merge 1 commits into bitcoin:master from 4tar:cnetaddr_asio_constructor changing 6 files +41 −45
  1. 4tar commented at 10:01 AM on June 7, 2014: contributor

    By merging the independent BoostAsioToCNetAddr() function, this makes things a little bit more straightforward and clearer I think.

    This is a renew of PR 4301 (https://github.com/bitcoin/bitcoin/pull/4301), the only change is to pre-declare the boost::asio::ip::address class instead of including asio.hpp in netbase.h to avoid increasing compiling time of those source files including it.

    Signed-off-by: Huang Le 4tarhl@gmail.com

  2. Add another CNetAddr constructor which accepts boost::asio::ip::address
    By merging the independent BoostAsioToCNetAddr() function, this makes things a little bit more straightforward and clearer I think.
    
    Signed-off-by: Huang Le <4tarhl@gmail.com>
    4af4d2ea74
  3. BitcoinPullTester commented at 10:26 AM on June 7, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/4af4d2ea743ec08a2ffd652bf066f3f53d922571 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  4. gubatron commented at 7:29 PM on June 7, 2014: contributor

    :+1:

  5. sipa commented at 9:22 PM on June 8, 2014: member

    As commented elsewhere, I would really prefer netbase to not be dependent on boost::asio.

  6. laanwj commented at 7:56 AM on June 9, 2014: member

    Right, as I've already explained to @4tar that was also my rationale for making it a separate conversion function.

    However rpcserver.cpp was also no longer the right place once it's used outside the RPC subsystem - for #4299.

    But boost::asio doesn't solve the problem there either, so my vote goes to closing this one and #4299.

  7. 4tar closed this on Jun 10, 2014

  8. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 00:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me