diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-28 20:54:38 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-28 20:54:38 +0000 |
commit | 2f1e77e46bec2dfe5994f20e5113afa93a92f281 (patch) | |
tree | 4438063f9f54106730351f8c367d1a474f93fdf7 /cpp/src/Ice/UdpTransceiver.cpp | |
parent | initial nested demo (does not work yet) (diff) | |
download | ice-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.cpp | 6 |
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()), |