Questions tagged [beast-websockets]

0

votes
1

answer
21

Views

Call a boost function without callback

I am using boost-beast library for a websocket connection. You can refer to this example for the understanding what is happening. I have used the same example, but changed a few things: split the on_handshake(beast::error_code ec) into three functions A(beast::error_code ec),B(beast::error_code ec)...
RC0993
1

votes
2

answer
1.5k

Views

How to do async read/write with Beast websockets

How can I do async write and read using websockets from the Beast library? I have tried to adapted the synchronous write/read example provided in the Beast documentation here, but the code below does not behave as expected. I expected the following output : *launch application* Written data ... Rece...
Eskilade
3

votes
2

answer
493

Views

How to do async read/write Beast websockets alongside read/write of files?

I have my C++ program that forks into two processes, 1 (the original) and 2 (the forked process). In the forked process (2), it execs program A that does a lot of computation. The original process (1) communicates with that program A through standard input and output redirected to pipes. I am trying...
user782220