| 210 | //[code_core_1_refresher_4 |
| 211 | template <class SyncWriteStream> |
| 212 | void 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 | //------------------------------------------------------------------------------ |
nothing calls this directly
no test coverage detected