summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpTransceiver.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-28 20:54:38 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-28 20:54:38 +0000
commit2f1e77e46bec2dfe5994f20e5113afa93a92f281 (patch)
tree4438063f9f54106730351f8c367d1a474f93fdf7 /cpp/src/Ice/UdpTransceiver.cpp
parentinitial nested demo (does not work yet) (diff)
downloadice-2f1e77e46bec2dfe5994f20e5113afa93a92f281.tar.bz2
ice-2f1e77e46bec2dfe5994f20e5113afa93a92f281.tar.xz
ice-2f1e77e46bec2dfe5994f20e5113afa93a92f281.zip
bug fix
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rw-r--r--cpp/src/Ice/UdpTransceiver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp
index 823428d7b94..68b54edc4e1 100644
--- a/cpp/src/Ice/UdpTransceiver.cpp
+++ b/cpp/src/Ice/UdpTransceiver.cpp
@@ -146,6 +146,12 @@ IceInternal::UdpTransceiver::equivalent(const string& host, int port) const
return memcmp(&addr, &localAddr, sizeof(struct sockaddr_in)) == 0;
}
+int
+IceInternal::UdpTransceiver::effectivePort()
+{
+ return ntohs(_addr.sin_port);
+}
+
IceInternal::UdpTransceiver::UdpTransceiver(const InstancePtr& instance, const string& host, int port) :
_instance(instance),
_traceLevels(instance->traceLevels()),