diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-17 18:48:46 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-17 18:48:46 +0000 |
commit | d7d8a18788c78e27d257ff12d92dd3f23bfc774a (patch) | |
tree | 6adecc8de9f13aae7c20c5280fd1069f9ab01e81 /cpp/src/Ice/ProxyFactory.cpp | |
parent | slice definitions for PyceExt purposes only (diff) | |
download | ice-d7d8a18788c78e27d257ff12d92dd3f23bfc774a.tar.bz2 ice-d7d8a18788c78e27d257ff12d92dd3f23bfc774a.tar.xz ice-d7d8a18788c78e27d257ff12d92dd3f23bfc774a.zip |
fixes
Diffstat (limited to 'cpp/src/Ice/ProxyFactory.cpp')
-rw-r--r-- | cpp/src/Ice/ProxyFactory.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cpp/src/Ice/ProxyFactory.cpp b/cpp/src/Ice/ProxyFactory.cpp index 947296db7c5..592545ddad7 100644 --- a/cpp/src/Ice/ProxyFactory.cpp +++ b/cpp/src/Ice/ProxyFactory.cpp @@ -40,14 +40,17 @@ IceInternal::ProxyFactory::streamToProxy(BasicStream* s) { string identity; s->read(identity); - if (identity.length()) + + if (identity.empty()) { - ReferencePtr reference = new Reference(identity, s); - return referenceToProxy(reference); + cout << "read empty identity" << endl; + return 0; } else { - return 0; + cout << "read identity " << identity << endl; + ReferencePtr reference = new Reference(identity, s); + return referenceToProxy(reference); } } @@ -64,11 +67,13 @@ IceInternal::ProxyFactory::proxyToStream(const ObjectPrx& proxy, BasicStream* s) { if (proxy) { + cout << "wrote identity " << proxy->__reference()->identity << endl; s->write(proxy->__reference()->identity); proxy->__reference()->streamWrite(s); } else { + cout << "wrote empty identity" << endl; s->write(""); } } |