summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/TcpEndpointI.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-08-16 21:54:10 +0200
committerJose <jose@zeroc.com>2012-08-16 21:54:10 +0200
commit0333544ca90a99baa6e9dc7373eba744d4404970 (patch)
treeb8d204864002edf7d0bbe903a8bf1fc8c917c8ee /cpp/src/Ice/TcpEndpointI.cpp
parentminor fixes (diff)
parentIceGridGUI updates to use latest jgoodies packages (diff)
downloadice-0333544ca90a99baa6e9dc7373eba744d4404970.tar.bz2
ice-0333544ca90a99baa6e9dc7373eba744d4404970.tar.xz
ice-0333544ca90a99baa6e9dc7373eba744d4404970.zip
Merge remote-tracking branch 'origin/encoding11' into mx
Conflicts: cpp/config/Make.rules.Darwin cpp/src/Ice/ConnectionFactory.cpp cpp/src/Ice/ConnectionI.h
Diffstat (limited to 'cpp/src/Ice/TcpEndpointI.cpp')
-rw-r--r--cpp/src/Ice/TcpEndpointI.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/Ice/TcpEndpointI.cpp b/cpp/src/Ice/TcpEndpointI.cpp
index 7eeac08f05b..7b47da856cd 100644
--- a/cpp/src/Ice/TcpEndpointI.cpp
+++ b/cpp/src/Ice/TcpEndpointI.cpp
@@ -546,10 +546,15 @@ IceInternal::TcpEndpointI::operator<(const LocalObject& r) const
Ice::Int
IceInternal::TcpEndpointI::hashInit() const
{
- Ice::Int h = 0;
+ Ice::Int h = 5381;
+ hashAdd(h, TCPEndpointType);
hashAdd(h, _host);
hashAdd(h, _port);
hashAdd(h, _timeout);
+ hashAdd(h, _protocol.major);
+ hashAdd(h, _protocol.minor);
+ hashAdd(h, _encoding.major);
+ hashAdd(h, _encoding.minor);
hashAdd(h, _connectionId);
hashAdd(h, _compress);
return h;