From f92dd279a1e26dad7507d5d6944567c23834d440 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 27 May 2010 09:45:12 +0000 Subject: 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 --- server/src/connection.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'server/src/connection.h') 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; -- cgit v1.2.3