Category "boost-asio"

Boost.Asio async_read a string from a socket

I'm trying to write a function async_read_string_n to asynchronously read a string of exactly n bytes from a socket with Boost.Asio 1.78 (and GCC 11.2). This is

How to implement sending a heartbeat message using a boost beast websocket client

I need to implement sending a heartbeat message to a third party server with regular intervals. The server uses these heartbeat messages to determine if that th

boost::asio::io_context::stop segfalt in gtest setup and teardown

Using C++17. I am trying to setup a gtest fixture that will create a fresh io_context to run timers on for each test case. My test segfault about 90% of the tim

Creating a HTTPS request using Boost Asio and OpenSSL

I have created a simple HTTP request wherein I am sending GET,POST and PUT requests to the server. Next I want to switch to HTTPS connection using boost asio li