ChipMaster's trial hacks on C++CMS starting with v1.2.1. Not sure I'll follow on with the v2 since it looks to be breaking and mostly frivolous.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.2 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
  4. //
  5. // See accompanying file COPYING.TXT file for licensing details.
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////
  8. #ifndef CPPCMS_TCP_CACHE_SERVER_H
  9. #define CPPCMS_TCP_CACHE_SERVER_H
  10. #include <cppcms/defs.h>
  11. #include "base_cache.h"
  12. #include <booster/noncopyable.h>
  13. #include <booster/intrusive_ptr.h>
  14. #include <booster/shared_ptr.h>
  15. #include <booster/hold_ptr.h>
  16. namespace cppcms {
  17. namespace sessions {
  18. class session_storage_factory;
  19. }
  20. namespace impl {
  21. class CPPCMS_API tcp_cache_service : public booster::noncopyable {
  22. public:
  23. tcp_cache_service( booster::intrusive_ptr<base_cache> cache,
  24. booster::shared_ptr<cppcms::sessions::session_storage_factory> f,
  25. int threads,
  26. std::string ip,
  27. int port,
  28. int gc_timeout = 10);
  29. ~tcp_cache_service();
  30. void stop();
  31. private:
  32. class session;
  33. class server;
  34. struct _data;
  35. booster::hold_ptr<_data> d;
  36. };
  37. } // impl
  38. } // cppcms
  39. #endif