summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Proxy.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-01-30 16:17:35 +0000
committerMarc Laukien <marc@zeroc.com>2003-01-30 16:17:35 +0000
commitee691ff3fa0882ffa02117b5156f76e5af2ea9be (patch)
tree5aa661cbb4a0d521512e15631dec2b066719f01c /cpp/src/Ice/Proxy.cpp
parentdisable SSLv2 (diff)
downloadice-ee691ff3fa0882ffa02117b5156f76e5af2ea9be.tar.bz2
ice-ee691ff3fa0882ffa02117b5156f76e5af2ea9be.tar.xz
ice-ee691ff3fa0882ffa02117b5156f76e5af2ea9be.zip
compression cleanup
Diffstat (limited to 'cpp/src/Ice/Proxy.cpp')
-rw-r--r--cpp/src/Ice/Proxy.cpp66
1 files changed, 48 insertions, 18 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp
index a37e9ac55a0..97a7d33ddb0 100644
--- a/cpp/src/Ice/Proxy.cpp
+++ b/cpp/src/Ice/Proxy.cpp
@@ -923,7 +923,7 @@ IceDelegateM::Ice::Object::ice_invoke_async(const AMI_Object_ice_invokePtr& cb,
void
IceDelegateM::Ice::Object::ice_flush()
{
- __connection->flushBatchRequest(__reference->compress);
+ __connection->flushBatchRequest();
}
void
@@ -1289,7 +1289,22 @@ IceDelegateD::Ice::Object::setup(const ReferencePtr& ref, const ObjectAdapterPtr
bool
Ice::proxyIdentityLess(const ObjectPrx& lhs, const ObjectPrx& rhs)
{
- return lhs->ice_getIdentity() < rhs->ice_getIdentity();
+ if(!lhs && !rhs)
+ {
+ return false;
+ }
+ else if(!lhs && rhs)
+ {
+ return true;
+ }
+ else if(lhs && !rhs)
+ {
+ return false;
+ }
+ else
+ {
+ return lhs->ice_getIdentity() < rhs->ice_getIdentity();
+ }
}
bool
@@ -1301,31 +1316,46 @@ Ice::proxyIdentityEqual(const ObjectPrx& lhs, const ObjectPrx& rhs)
bool
Ice::proxyIdentityAndFacetLess(const ObjectPrx& lhs, const ObjectPrx& rhs)
{
- Identity lhsIdentity = lhs->ice_getIdentity();
- Identity rhsIdentity = rhs->ice_getIdentity();
-
- if(lhsIdentity < rhsIdentity)
- {
- return true;
- }
- else if(rhsIdentity < lhsIdentity)
+ if(!lhs && !rhs)
{
return false;
}
-
- FacetPath lhsFacet = lhs->ice_getFacet();
- FacetPath rhsFacet = rhs->ice_getFacet();
-
- if(lhsFacet < rhsFacet)
+ else if(!lhs && rhs)
{
return true;
}
- else if(rhsFacet < lhsFacet)
+ else if(lhs && !rhs)
{
return false;
}
-
- return false;
+ else
+ {
+ Identity lhsIdentity = lhs->ice_getIdentity();
+ Identity rhsIdentity = rhs->ice_getIdentity();
+
+ if(lhsIdentity < rhsIdentity)
+ {
+ return true;
+ }
+ else if(rhsIdentity < lhsIdentity)
+ {
+ return false;
+ }
+
+ FacetPath lhsFacet = lhs->ice_getFacet();
+ FacetPath rhsFacet = rhs->ice_getFacet();
+
+ if(lhsFacet < rhsFacet)
+ {
+ return true;
+ }
+ else if(rhsFacet < lhsFacet)
+ {
+ return false;
+ }
+
+ return false;
+ }
}
bool