Questions tagged [boost-beast-websocket]
25 questions
1
vote
1 answer
Understand function parameters(pass by value instead of by const reference) in boost::beast client example websocket_client_async_ssl.cpp
Reference:
boost_1_78_0/doc/html/boost_asio/reference/ip__basic_resolver/async_resolve/overload1.html
template<
typename ResolveHandler = DEFAULT>
DEDUCED async_resolve(
const query & q,
ResolveHandler && handler = DEFAULT);
The…

q0987
- 34,938
- 69
- 242
- 387
1
vote
1 answer
How to suppress "ERROR message: short read (SSL routines, SSL routines), value: 335544539"
Reference:
websocket_client_sync_ssl.cpp
// Read a message into our buffer
ws.read(buffer);
// Close the WebSocket connection
ws.close(websocket::close_code::normal);
Based on my test, the ws.close will spit out a warning below:
ERROR…

q0987
- 34,938
- 69
- 242
- 387
1
vote
1 answer
How to print the WebSocket HTTP Upgrade Request?
Reference: websocket_client_sync.cpp
Table 1.30. WebSocket HTTP Upgrade Request
GET / HTTP/1.1
Host: www.example.com
Upgrade: websocket
Connection: upgrade
Sec-WebSocket-Key: 2pGeTR0DsE4dfZs2pH+8MA==
Sec-WebSocket-Version: 13
User-Agent:…

q0987
- 34,938
- 69
- 242
- 387
1
vote
2 answers
Boost::beast::ssl_stream unable to deference the shared pointer, need to transform ssl_stream to websocket::stream
I am trying to write a https flex server, that can upgrade to websocket based on upgrade request. https class does the ssl handshake on std::shared_ptr> m_ptls_stream
Now I need to transfer this…

mhs
- 13
- 3
0
votes
0 answers
facebook dispenso multithreading/tasking synchronization integration with boost beast asio web sockets?
I try to build an ultra-simple stable and fast C++ concurrent web-sockets project. I stumbled on the boost::beast project, integrated the Hello World sample.
While starting to dig into the code and trying to understand how to implement a sample…

Ori Kovacsi-Katz
- 11
- 3
0
votes
0 answers
How to enable async boost::beast websocket applications to support multiple connections for load balance?
Reference:
https://www.boost.org/doc/libs/1_80_0/libs/beast/example/websocket/client/async-ssl/websocket_client_async_ssl.cpp
My websocket client application was built based on the above example. Now I experience a bottleneck where one websocket…

q0987
- 34,938
- 69
- 242
- 387
0
votes
0 answers
Boost Beast Websocket Management
I'm trying to understand boost beast by extending the websocket chat-multi example. I understand how it is working now but I do not see how I would access the client connections from some other server side event. For example, the 'admin' running the…

Crushing
- 487
- 1
- 9
- 24
0
votes
1 answer
Fastest way to close a websocket and free up file discriptors
I am using boost beast for making websocket connections, a process of mine may have a large number of streams/connections and while terminating the process I am calling blocking close of each websocket in destructor using :
if (…

DEEPANSH NAGARIA
- 113
- 8
0
votes
2 answers
RST after Client hello
Boost beast TLS client (largely based on this) which is not connecting to Microsoft Azure azurewebsites hosted web app. Viewing the Wireshark output, it appears that the server is sending RST after the client sends the Client hello message, which…

Alex
- 669
- 15
- 37
0
votes
1 answer
Exception In boost-beast
I use Boost::Beast and i got somme exception message for exemple : resolve: No such host is known.
I want in my code to print i message more significant that can a simple user get a idea what this message means .
how i can do that?
that is the…

ioula
- 11
- 2