{"id":60136,"library":"asio","title":"Asio","description":"Asio is a cross-platform C++ library for network and low-level I/O programming using a consistent asynchronous model.","status":"active","version":"1.32.0","language":"cpp","source_language":null,"source_url":null,"tags":["networking","async","io","cross-platform"],"install":[{"cmd":"vcpkg install asio","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(asio CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE asio::asio)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"asio.hpp","correct":"#include <asio.hpp>"}],"quickstart":{"code":"#include <asio.hpp>\n#include <iostream>\n\nint main() {\n    asio::io_context io;\n    asio::steady_timer t(io, asio::chrono::seconds(1));\n    t.wait();\n    std::cout << \"Hello, world!\" << std::endl;\n    return 0;\n}","lang":"cpp","description":"Create a timer that waits for 1 second synchronously."},"warnings":[{"fix":"For standalone Asio, use #include <asio.hpp> and link against asio::asio; for Boost.Asio, use #include <boost/asio.hpp> and link against Boost::asio.","message":"Asio has two variants: standalone (header-only) and Boost.Asio. Ensure you use the correct include path and link flags.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'asio':1,2 'async':24 'asynchron':21 'c':8 'consist':20 'cross':6,27 'cross-platform':5,26 'i/o':16 'io':25 'level':15 'librari':9 'low':14 'low-level':13 'model':22 'network':11,23 'platform':7,28 'program':17 'use':18","created_at":"2026-06-16T19:17:59.255857+00:00","updated_at":"2026-06-16T19:17:59.255857+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}