| 439 | } |
| 440 | |
| 441 | void |
| 442 | on_handshake( |
| 443 | beast::error_code ec, |
| 444 | std::size_t bytes_used) |
| 445 | { |
| 446 | if(ec) |
| 447 | return fail(ec, "handshake"); |
| 448 | |
| 449 | // Consume the portion of the buffer used by the handshake |
| 450 | buffer_.consume(bytes_used); |
| 451 | |
| 452 | do_read(); |
| 453 | } |
| 454 | |
| 455 | void |
| 456 | do_eof() |