forked from artyom-beilis/cppcms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtcp_cache_server.h
More file actions
44 lines (39 loc) · 1.22 KB
/
Copy pathtcp_cache_server.h
File metadata and controls
44 lines (39 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
//
// See accompanying file COPYING.TXT file for licensing details.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCMS_TCP_CACHE_SERVER_H
#define CPPCMS_TCP_CACHE_SERVER_H
#include <cppcms/defs.h>
#include "base_cache.h"
#include <booster/noncopyable.h>
#include <booster/intrusive_ptr.h>
#include <booster/shared_ptr.h>
#include <booster/hold_ptr.h>
namespace cppcms {
namespace sessions {
class session_storage_factory;
}
namespace impl {
class CPPCMS_API tcp_cache_service : public booster::noncopyable {
public:
tcp_cache_service( booster::intrusive_ptr<base_cache> cache,
booster::shared_ptr<cppcms::sessions::session_storage_factory> f,
int threads,
std::string ip,
int port,
int gc_timeout = 10);
~tcp_cache_service();
void stop();
private:
class session;
class server;
struct _data;
booster::hold_ptr<_data> d;
};
} // impl
} // cppcms
#endif