summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionI.h
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2005-04-19 12:46:41 +0000
committerMarc Laukien <marc@zeroc.com>2005-04-19 12:46:41 +0000
commit8e8f98c8fb212e38622e22e70d880d1ec5c06c2a (patch)
tree58e08d7c52d7b5d681836eb2b4fc7c4880524bff /cpp/demo/Ice/session/SessionI.h
parentFix (diff)
downloadice-8e8f98c8fb212e38622e22e70d880d1ec5c06c2a.tar.bz2
ice-8e8f98c8fb212e38622e22e70d880d1ec5c06c2a.tar.xz
ice-8e8f98c8fb212e38622e22e70d880d1ec5c06c2a.zip
comments
Diffstat (limited to 'cpp/demo/Ice/session/SessionI.h')
-rwxr-xr-xcpp/demo/Ice/session/SessionI.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/demo/Ice/session/SessionI.h b/cpp/demo/Ice/session/SessionI.h
index 7988e46078d..30f5b923832 100755
--- a/cpp/demo/Ice/session/SessionI.h
+++ b/cpp/demo/Ice/session/SessionI.h
@@ -10,6 +10,11 @@
#ifndef SESSION_I_H
#define SESSION_I_H
+// XXX Missing #includes. The #includes for the header must be
+// self-contained, i.e. there must be no problem if you just do
+// #include<SessionFactoryI.h> from an empty .cpp file. (I know that
+// some other demos don't follow this rule, but they need to be
+// fixed. We shouldn't propagate such mistakes into new demos.)
#include <Session.h>
#include <list>
@@ -32,7 +37,8 @@ private:
SessionI();
IceUtil::Time _timestamp; // The last time the session was refreshed.
-
+
+ // XXX This needs to be a static, otherwise hello objects from different client have the same ID.
int _nextId; // The id of the next hello object. This is used for tracing purposes.
std::list< Demo::HelloPrx> _objs; // List of per-client allocated Hello objects.
bool _destroy;