summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-17 18:48:46 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-17 18:48:46 +0000
commitd7d8a18788c78e27d257ff12d92dd3f23bfc774a (patch)
tree6adecc8de9f13aae7c20c5280fd1069f9ab01e81 /cpp/src/Ice/Reference.cpp
parentslice definitions for PyceExt purposes only (diff)
downloadice-d7d8a18788c78e27d257ff12d92dd3f23bfc774a.tar.bz2
ice-d7d8a18788c78e27d257ff12d92dd3f23bfc774a.tar.xz
ice-d7d8a18788c78e27d257ff12d92dd3f23bfc774a.zip
fixes
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r--cpp/src/Ice/Reference.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp
index 59c1f322913..a1e4c2a0fa5 100644
--- a/cpp/src/Ice/Reference.cpp
+++ b/cpp/src/Ice/Reference.cpp
@@ -251,7 +251,21 @@ IceInternal::Reference::Reference(const string& ident, BasicStream* s) :
// constructor read the identity, and pass it as a parameter.
//
- s->read(const_cast<string&>(facet));
+ string fac;
+ s->read(fac);
+ const_cast<string&>(facet) = fac;
+
+ Byte mod;
+ s->read(mod);
+ if (mod < 0 || mod > static_cast<Byte>(ModeBatchLast))
+ {
+ throw ProxyUnmarshalException(__FILE__, __LINE__);
+ }
+ const_cast<Mode&>(mode) = static_cast<Mode>(mod);
+
+ bool sec;
+ s->read(sec);
+ const_cast<bool&>(secure) = sec;
vector<EndpointPtr>::const_iterator p;
Ice::Int sz;
@@ -290,7 +304,11 @@ IceInternal::Reference::streamWrite(BasicStream* s) const
// write the identity.
//
- s->write(facet);
+// s->write(facet);
+
+// s->write(static_cast<Byte>(mode));
+
+// s->write(secure);
vector<EndpointPtr>::const_iterator p;
@@ -306,6 +324,7 @@ IceInternal::Reference::streamWrite(BasicStream* s) const
}
else
{
+ s->write(false);
s->write(Ice::Int(endpoints.size()));
for (p = endpoints.begin(); p != endpoints.end(); ++p)
{