1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_CACHE_CACHE_SERVER_H
5 #define CEPH_CACHE_CACHE_SERVER_H
7 #include <boost/asio.hpp>
8 #include <boost/asio/error.hpp>
11 #include "SocketCommon.h"
12 #include "CacheSession.h"
15 using boost::asio::local::stream_protocol
;
18 namespace immutable_obj_cache
{
22 CacheServer(CephContext
* cct
, const std::string
& file
, ProcessMsg processmsg
);
31 void handle_accept(CacheSessionPtr new_session
,
32 const boost::system::error_code
& error
);
36 boost::asio::io_service m_io_service
;
37 ProcessMsg m_server_process_msg
;
38 stream_protocol::endpoint m_local_path
;
39 stream_protocol::acceptor m_acceptor
;
42 } // namespace immutable_obj_cache