added to config: session_max

how many sessions can be: default 1000000 (one milion)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@694 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-12-07 17:41:28 +00:00
parent 0a9cdd2f15
commit 508f06339e
6 changed files with 35 additions and 32 deletions

View File

@@ -24,7 +24,7 @@
// and in its destructor the plugin.Call(WINIX_SESSION_REMOVE) is called
struct Session
{
// 0 - means that there is no session
// 0 - means that there is a temporary session
long id;
// true if the session was created now
@@ -55,21 +55,17 @@ struct Session
Rebus::Item * rebus_item;
bool rebus_checked;
//std::string dir_old;
int spam_score;
PluginData plugin_data;
// -------------------
Session();
void Clear();
bool operator==(const Session & s) const;
bool operator<(const Session & s) const;
void DecTimer(int & timer);
};