MCPcopy Create free account
hub / github.com/boostorg/beast / echo

Function echo

test/doc/websocket_8_notes.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72//[code_websocket_8_1f
73
74void echo(stream<tcp_stream>& ws,
75 multi_buffer& buffer, net::yield_context yield)
76{
77 ws.async_read(buffer, yield);
78 std::future<std::size_t> fut =
79 ws.async_write(buffer.data(), net::use_future);
80}
81
82//]
83//#endif

Callers

nothing calls this directly

Calls 2

async_readMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected