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

Method on_write

example/websocket/client/async/websocket_client_async.cpp:147–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 void
148 on_write(
149 beast::error_code ec,
150 std::size_t bytes_transferred)
151 {
152 boost::ignore_unused(bytes_transferred);
153
154 if(ec)
155 return fail(ec, "write");
156
157 // Read a message into our buffer
158 ws_.async_read(
159 buffer_,
160 beast::bind_front_handler(
161 &session::on_read,
162 shared_from_this()));
163 }
164
165 void
166 on_read(

Callers

nothing calls this directly

Calls 3

bind_front_handlerFunction · 0.85
async_readMethod · 0.80
failFunction · 0.70

Tested by

no test coverage detected