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

Method run

test/beast/core/basic_stream.cpp:269–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 }
268
269 void
270 run()
271 {
272 if(s_.empty())
273 socket_.async_wait(
274 net::socket_base::wait_read,
275 bind_front_handler(
276 &session::on_read,
277 shared_from_this()));
278 else
279 net::async_write(
280 socket_,
281 net::const_buffer(s_.data(), s_.size()),
282 bind_front_handler(
283 &session::on_write,
284 shared_from_this()));
285 }
286
287 protected:
288 void

Callers

nothing calls this directly

Calls 6

bind_front_handlerFunction · 0.85
async_waitMethod · 0.80
async_writeFunction · 0.50
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected