summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/CommunicatorI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/CommunicatorI.cpp')
-rw-r--r--cpp/src/Ice/CommunicatorI.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/Ice/CommunicatorI.cpp b/cpp/src/Ice/CommunicatorI.cpp
index e96b41cac50..72104df1b87 100644
--- a/cpp/src/Ice/CommunicatorI.cpp
+++ b/cpp/src/Ice/CommunicatorI.cpp
@@ -72,6 +72,17 @@ Ice::CommunicatorI::stringToProxy(const string& s)
return _instance->proxyFactory()->stringToProxy(s);
}
+string
+Ice::CommunicatorI::proxyToString(const ObjectPrx& proxy)
+{
+ JTCSyncT<JTCRecursiveMutex> sync(*this);
+ if (!_instance)
+ {
+ throw CommunicatorDestroyedException(__FILE__, __LINE__);
+ }
+ return _instance->proxyFactory()->proxyToString(proxy);
+}
+
ObjectAdapterPtr
Ice::CommunicatorI::createObjectAdapter(const string& name)
{