Advertisement
Guest User

Untitled

a guest
May 30th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. auto sock = std::make_shared<TLSSocket>(m_ioService);
  2. m_strand.dispatch([&] {
  3.  
  4. m_acceptor.async_accept(sock->m_socket.lowest_layer(), [
  5. =,
  6. self = std::move(self),
  7. success = std::move(success),
  8. error = std::move(error)
  9. ](const auto ec) {
  10. if (ec)
  11. error(ec.message());
  12. else
  13. success(std::move(sock));
  14. });
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement