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

Method on_write

example/websocket/server/async/websocket_server_async.cpp:140–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 }
139
140 void
141 on_write(
142 beast::error_code ec,
143 std::size_t bytes_transferred)
144 {
145 boost::ignore_unused(bytes_transferred);
146
147 if(ec)
148 return fail(ec, "write");
149
150 // Clear the buffer
151 buffer_.consume(buffer_.size());
152
153 // Do another read
154 do_read();
155 }
156};
157
158//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

failFunction · 0.70
consumeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected