summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/WSTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/WSTransceiver.cpp')
-rw-r--r--cpp/src/Ice/WSTransceiver.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/cpp/src/Ice/WSTransceiver.cpp b/cpp/src/Ice/WSTransceiver.cpp
index d476b52a67e..08764fbc267 100644
--- a/cpp/src/Ice/WSTransceiver.cpp
+++ b/cpp/src/Ice/WSTransceiver.cpp
@@ -803,17 +803,8 @@ IceInternal::WSTransceiver::toDetailedString() const
Ice::ConnectionInfoPtr
IceInternal::WSTransceiver::getInfo() const
{
- IPConnectionInfoPtr di = IPConnectionInfoPtr::dynamicCast(_delegate->getInfo());
- assert(di);
- WSConnectionInfoPtr info = new WSConnectionInfo();
- info->localAddress = di->localAddress;
- info->localPort = di->localPort;
- info->remoteAddress = di->remoteAddress;
- info->remotePort = di->remotePort;
- info->rcvSize = di->rcvSize;
- info->sndSize = di->sndSize;
- info->headers = _parser->getHeaders();
- return info;
+ assert(dynamic_cast<WSTransceiverDelegate*>(_delegate.get()));
+ return dynamic_cast<WSTransceiverDelegate*>(_delegate.get())->getWSInfo(_parser->getHeaders());
}
void