NetworkDefines.h 691 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * NetworkDefines.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include <boost/asio.hpp>
  12. #include "NetworkInterface.h"
  13. VCMI_LIB_NAMESPACE_BEGIN
  14. #if BOOST_VERSION >= 106600
  15. using NetworkContext = boost::asio::io_context;
  16. #else
  17. using NetworkContext = boost::asio::io_service;
  18. #endif
  19. using NetworkSocket = boost::asio::ip::tcp::socket;
  20. using NetworkAcceptor = boost::asio::ip::tcp::acceptor;
  21. using NetworkBuffer = boost::asio::streambuf;
  22. using NetworkTimer = boost::asio::steady_timer;
  23. VCMI_LIB_NAMESPACE_END