fastdo  0.6.8
webx_MemorySessionServer.hpp
浏览该文件的文档.
1 #pragma once
2 
3 namespace eienwebx
4 {
5 
11 {
12 public:
20  MemorySessionServer( winux::String const & host, winux::ushort port, winux::ulong cleanTimeInterval = 1800UL, winux::ulong sessionLifeTime = 1800UL );
21 
23  virtual void clean();
24 
26  virtual bool startup( winux::String const & sessid, SessionData * sessData );
27 
29  virtual bool save( winux::String const & sessid, SessionData const & sessData, winux::ulong thisLifeTime = 0UL );
30 
31 private:
33  typedef std::map<winux::String, SessionStruct> SessionStructMap;
34  SessionStructMap _sessions;
35 
37 };
38 
39 
40 } // namespace eienwebx
#define EIENWEBX_DLL
XString< tchar > String
Definition: utilities.hpp:216
Web功能的相关封装
#define DISABLE_OBJECT_COPY(clsname)
Definition: utilities.hpp:81
winux::StringMixedMap SessionData
会话数据
unsigned short ushort
Definition: utilities.hpp:173
unsigned long ulong
Definition: utilities.hpp:171