diff options
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()), |