diff options
author | deva <deva> | 2010-05-27 09:45:12 +0000 |
---|---|---|
committer | deva <deva> | 2010-05-27 09:45:12 +0000 |
commit | f92dd279a1e26dad7507d5d6944567c23834d440 (patch) | |
tree | 59dbd43d60937c6b3eaa82a36de8859a209e8163 /server/src/connection.h | |
parent | 73934812611cc7120175e26761d71fae9233c1e8 (diff) |
A lot of session handling. A lot of new unit tests. Add of a more structured commit/discard handling. Fix of some wierd line break bugs in journalwriter
Diffstat (limited to 'server/src/connection.h')
-rw-r--r-- | server/src/connection.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/server/src/connection.h b/server/src/connection.h index f91ddc1..61997da 100644 --- a/server/src/connection.h +++ b/server/src/connection.h @@ -33,9 +33,11 @@ #include "transaction.h" #include "transactionparser.h" +class Session; + class Connection { public: - Connection(Environment &e, std::string sessionid, bool commit); + Connection(Environment &e, std::string sessionid, bool commit, bool discard); ~Connection(); bool handle(const char *data, size_t size); @@ -44,8 +46,12 @@ public: std::string getSessionID(); private: + void commit(Session *session); + void discard(Session *session); + std::string sessionid; - bool commit; + bool docommit; + bool dodiscard; Environment &env; Transaction transaction; |