summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpEndpointI.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/UdpEndpointI.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/UdpEndpointI.cpp')
-rw-r--r--cpp/src/Ice/UdpEndpointI.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/Ice/UdpEndpointI.cpp b/cpp/src/Ice/UdpEndpointI.cpp
index 9b4c05bdf9d..c20a430bbe6 100644
--- a/cpp/src/Ice/UdpEndpointI.cpp
+++ b/cpp/src/Ice/UdpEndpointI.cpp
@@ -631,12 +631,17 @@ IceInternal::UdpEndpointI::operator<(const LocalObject& r) const
Ice::Int
IceInternal::UdpEndpointI::hashInit() const
{
- Ice::Int h = 0;
+ Ice::Int h = 5381;
+ hashAdd(h, UDPEndpointType);
hashAdd(h, _host);
hashAdd(h, _port);
hashAdd(h, _mcastInterface);
hashAdd(h, _mcastTtl);
hashAdd(h, _connect);
+ hashAdd(h, _protocol.major);
+ hashAdd(h, _protocol.minor);
+ hashAdd(h, _encoding.major);
+ hashAdd(h, _encoding.minor);
hashAdd(h, _connectionId);
hashAdd(h, _compress);
return h;