From 39bd5c058ea842db10fc56ee153ec338e0d24f0f Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 4 Jun 2008 08:16:12 +0000 Subject: Introduced the errorbox to communicate server errors to the client. --- server/src/server.cc | 256 +++++++++++++++++++++++-------------------- server/src/templateparser.cc | 4 + 2 files changed, 143 insertions(+), 117 deletions(-) diff --git a/server/src/server.cc b/server/src/server.cc index f74c2b0..a896102 100644 --- a/server/src/server.cc +++ b/server/src/server.cc @@ -47,140 +47,162 @@ #include "resumeparser.h" #include "journal_commit.h" -static void connection(TCPSocket &socket) +static std::string error_box(std::string message) { - Transaction transaction; - TransactionParser parser(socket, transaction); - parser.parse(); + std::string errorbox; + + errorbox += " \n"; + errorbox += " \n"; + errorbox += " \n"; + errorbox += " \n"; + errorbox += "