From 8f00317567dab4c825a0eca76a9cae7951edd11f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 6 Dec 2011 14:15:52 +0100 Subject: Clean up the way connections are handled. --- server/src/client_connection.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src/client_connection.h') diff --git a/server/src/client_connection.h b/server/src/client_connection.h index e64dcad..b8f7836 100644 --- a/server/src/client_connection.h +++ b/server/src/client_connection.h @@ -49,7 +49,8 @@ public: headers_t args, std::string uri); ~ClientConnection(); - bool handle(const char *data, size_t size); + bool data(const char *data, size_t size); + bool handle(); void getReply(Httpd::Reply &reply); -- cgit v1.2.3 From 4edae3f518353bb21a02fcda2dfcff83c5a72fc3 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 26 Jan 2012 12:08:39 +0100 Subject: New onCommit scripting system. --- server/src/client_connection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/src/client_connection.h') diff --git a/server/src/client_connection.h b/server/src/client_connection.h index b8f7836..0bfa2e4 100644 --- a/server/src/client_connection.h +++ b/server/src/client_connection.h @@ -36,6 +36,8 @@ #include "transaction.h" #include "transactionparser.h" +#include "luascript.h" + class Session; class ClientConnection : public Connection { @@ -55,7 +57,7 @@ public: void getReply(Httpd::Reply &reply); private: - void commit(Session *session); + void commit(Session *session) throw(LUAScript::Exception, Journal::Exception); void nocommit(Session *session); void discard(Session *session); -- cgit v1.2.3