| 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 |
nothing calls this directly
no test coverage detected