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

Function hello

test/doc/core_1_refresher.cpp:212–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210//[code_core_1_refresher_4
211template <class SyncWriteStream>
212void hello (SyncWriteStream& stream)
213{
214 net::const_buffer cb("Hello, world!", 13);
215 do
216 {
217 auto bytes_transferred = stream.write_some(cb); // may throw
218 cb += bytes_transferred; // adjust the pointer and size
219 }
220 while (cb.size() > 0);
221}
222//]
223
224//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

write_someMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected