summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
authordeva <deva>2011-01-28 08:50:42 +0000
committerdeva <deva>2011-01-28 08:50:42 +0000
commit775d9c9c11f3906766c0dc7070eb7ef01606ef96 (patch)
tree7b957553d2778a4350d73f460997186e2484f5ca /server/src/server.cc
parent7917d099f34acda6c4c90bca28710a7bd67800e9 (diff)
New cross client system.
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index 3973756..6474fb5 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -54,13 +54,18 @@ public:
headers_t &headers)
{
std::string sessionid;
+ std::string patientid;
+ std::string templ;
if(headers.contains("SessionID")) sessionid = headers["SessionID"];
+ if(headers.contains("SessionPatientID"))
+ patientid = headers["SessionPatientID"];
+ if(headers.contains("SessionTemplate")) templ = headers["SessionTemplate"];
bool commit = headers.contains("SessionCommit");
bool nocommit = headers.contains("SessionNoCommit");
bool discard = headers.contains("SessionDiscard");
- Connection *connection = new Connection(env, sessionid,
+ Connection *connection = new Connection(env, sessionid, patientid, templ,
commit, discard, nocommit);
return connection;