| 78 | } |
| 79 | |
| 80 | void CacheServer::accept() { |
| 81 | CacheSessionPtr new_session = nullptr; |
| 82 | |
| 83 | new_session.reset(new CacheSession(m_io_service, |
| 84 | m_server_process_msg, cct)); |
| 85 | |
| 86 | m_acceptor.async_accept(new_session->socket(), |
| 87 | boost::bind(&CacheServer::handle_accept, this, new_session, |
| 88 | boost::asio::placeholders::error)); |
| 89 | } |
| 90 | |
| 91 | void CacheServer::handle_accept(CacheSessionPtr new_session, |
| 92 | const boost::system::error_code& error) { |