boost-beast Questions

1

Solved

So I don't know why but I can't wrap my head around the boost Beast websocket server and how you can (or should) interact with it. The basic program I made looks like this, across 2 classes (WebSoc...
Shift asked 27/3, 2022 at 17:57

3

Assertion failed: (id_ != T::id), function try_lock, file /usr/local/include/boost/beast/websocket/detail/stream_base.hpp, line 91. // Echoes back all received WebSocket messages class session : ...
Leopold asked 8/9, 2018 at 15:39

1

I am trying boost::beast examples, I came across to this piece of code. void on_write(beast::error_code ec, std::size_t byte_transferred) { if (ec) return fail(ec, "write"); http::asy...
Refection asked 26/3, 2021 at 19:17

3

Solved

I am new to SSL and the Boost-Beast library, and also C++, but that's a different story. I have a question regarding using HTTPS (SSL) with Beast. I am going to use the library to connect to a RES...
Heavenward asked 27/3, 2018 at 8:1

2

Solved

I am adapting the synchronous HTTP client from the Boost Beast examples. Unfortunately the example client does not include timeout options and sometimes gets stuck in my workloads. I tried adding t...
Deweese asked 30/6, 2019 at 23:11

1

Solved

Im using mingw64. How can I make https-request using boost beast lib? I got code below and it works, but I recieve answer: "400 The plain HTTP request was sent to HTTPS port" What should I compl...
Tersina asked 10/3, 2019 at 18:29

2

Solved

I copy websocket example from boost::beast website and run it Websocket session work fine but I don't know how to convert received multi_buffer to string. below code is websocket session handler. ...
Aniela asked 18/8, 2017 at 17:18

1

Solved

I'm writing tests for my full-duplex server, and when I do multiple (sequential) async_write calls (although covered with a strand), I get the following assertion error from boost::beast in the fil...
Ulotrichous asked 6/6, 2018 at 19:21

1

I am working on a http parser, and it looks like boost.beast is a nice one. However, I still have some questions: *** Assume HTTP Request POST data already received via boost.asio socket. Stored i...
Gusella asked 23/5, 2018 at 3:33

1

My starting point is to create a simple downloader code from the boost beast http_client_async example at boost http_client_async. In this scenario i want to write the received body into a file. ...
Scribbler asked 15/5, 2018 at 11:0

1

I've modified the http_sync example to connect through a proxy, I've tested with wireshark and the problem is that after I send the http connect request, the proxy returns with the code 200 OK, and...
Watterson asked 14/4, 2018 at 23:14

2

Solved

I've to use a C++ library for sending data to a REST-Webservice of our company. I start with Boost and Beast and with the example given here under Code::Blocks in a Ubuntu 16.04 enviroment. The doc...
Unsavory asked 2/6, 2017 at 14:25

1

Solved

I am studying the Boost.Beast library. I try to make a request whose response is: HTTP/1.1 301 Moved Permanently Cache-Control: public Content-Type: text/html; charset=UTF-8 Location: https://www....
Sheik asked 25/8, 2017 at 11:22
1

© 2022 - 2024 — McMap. All rights reserved.