[wesnoth-commits] [wesnoth/wesnoth] 799add: Simplify network connection code with boost::asio:...

Charles Dang noreply at github.com
Sun Dec 6 14:24:01 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 799addef0127a55396ef1f6b9efc2b984bf0cb2a
      https://github.com/wesnoth/wesnoth/commit/799addef0127a55396ef1f6b9efc2b984bf0cb2a
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    M src/network_asio.cpp
    M src/network_asio.hpp
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Simplify network connection code with boost::asio::async_connect

That function basically does what we were doing manually - walking through each possible endpoint and trying to connect to each one.


  Commit: da29dbd380c946970eaa2b9caa7e9144f620c39f
      https://github.com/wesnoth/wesnoth/commit/da29dbd380c946970eaa2b9caa7e9144f620c39f
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    M src/network_asio.cpp
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Conditionally use new interface for resolver::async_resolve


  Commit: ef72a0c787ee01868921c866fb26427a539d495d
      https://github.com/wesnoth/wesnoth/commit/ef72a0c787ee01868921c866fb26427a539d495d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    M src/network_asio.cpp
    M src/network_asio.hpp
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Conditionally use new resolve/connect callback interfaces


  Commit: 5f959917e1d4504296a17291070d9bd2f41bb96f
      https://github.com/wesnoth/wesnoth/commit/5f959917e1d4504296a17291070d9bd2f41bb96f
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    M src/network_asio.hpp
    M src/wesnothd_connection.hpp

  Log Message:
  -----------
  Conditionally use io_context type directly


  Commit: 33f60c16a93b7d649f7e15ed926ae394003ef463
      https://github.com/wesnoth/wesnoth/commit/33f60c16a93b7d649f7e15ed926ae394003ef463
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    M src/network_asio.cpp

  Log Message:
  -----------
  Network Asio: conditionally remove use of buffer_cast


Compare: https://github.com/wesnoth/wesnoth/compare/ab95662720c5...33f60c16a93b



More information about the Commits mailing list