/* This file is part of Metaproxy.
- Copyright (C) 2005-2008 Index Data
+ Copyright (C) 2005-2009 Index Data
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
++m_global_id;
m_id = m_global_id;
m_close = false;
- };
+ }
/// copy session including old id
Session(const Session &s) : m_id(s.m_id), m_close(s.m_close) {};
unsigned long id() const {
return m_id;
- };
+ }
bool is_closed() const {
return m_close;
- };
+ }
/// mark session closed, can not be unset
void close() {
m_close = true;
- };
+ }
bool operator == (Session &ses) const {
return ses.m_id == m_id;
}
+
private:
unsigned long int m_id;