summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/OpaqueEndpointI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-09-05 10:42:18 -0230
committerDwayne Boone <dwayne@zeroc.com>2014-09-05 10:42:18 -0230
commit9786853ab2d88598021aaec5c0409d3a45a50a13 (patch)
treed64858749513c529fdb84a98d8637d19f2c125e4 /cpp/src/Ice/OpaqueEndpointI.cpp
parentMinor change to JS print stack traces (diff)
downloadice-9786853ab2d88598021aaec5c0409d3a45a50a13.tar.bz2
ice-9786853ab2d88598021aaec5c0409d3a45a50a13.tar.xz
ice-9786853ab2d88598021aaec5c0409d3a45a50a13.zip
ICE-4891 Refactor network tracing
Diffstat (limited to 'cpp/src/Ice/OpaqueEndpointI.cpp')
-rw-r--r--cpp/src/Ice/OpaqueEndpointI.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/cpp/src/Ice/OpaqueEndpointI.cpp b/cpp/src/Ice/OpaqueEndpointI.cpp
index 6b86a20ee2c..efc5170d4cd 100644
--- a/cpp/src/Ice/OpaqueEndpointI.cpp
+++ b/cpp/src/Ice/OpaqueEndpointI.cpp
@@ -27,7 +27,7 @@ static string opaqueEndpointConnectionId;
}
-IceInternal::OpaqueEndpointI::OpaqueEndpointI(vector<string>& args) :
+IceInternal::OpaqueEndpointI::OpaqueEndpointI(vector<string>& args) :
_type(-1), _rawEncoding(Encoding_1_0)
{
initWithOptions(args);
@@ -170,9 +170,8 @@ IceInternal::OpaqueEndpointI::secure() const
}
TransceiverPtr
-IceInternal::OpaqueEndpointI::transceiver(EndpointIPtr& endp) const
+IceInternal::OpaqueEndpointI::transceiver() const
{
- endp = const_cast<OpaqueEndpointI*>(this);
return 0;
}
@@ -190,12 +189,23 @@ IceInternal::OpaqueEndpointI::connectors_async(Ice::EndpointSelectionType, const
}
AcceptorPtr
-IceInternal::OpaqueEndpointI::acceptor(EndpointIPtr& endp, const string&) const
+IceInternal::OpaqueEndpointI::acceptor(const string&) const
{
- endp = const_cast<OpaqueEndpointI*>(this);
return 0;
}
+EndpointIPtr
+IceInternal::OpaqueEndpointI::endpoint(const TransceiverPtr&) const
+{
+ return const_cast<OpaqueEndpointI*>(this);
+}
+
+EndpointIPtr
+IceInternal::OpaqueEndpointI::endpoint(const AcceptorPtr&) const
+{
+ return const_cast<OpaqueEndpointI*>(this);
+}
+
vector<EndpointIPtr>
IceInternal::OpaqueEndpointI::expand() const
{