diff options
Diffstat (limited to 'cpp/src/Ice/OpaqueEndpointI.cpp')
-rw-r--r-- | cpp/src/Ice/OpaqueEndpointI.cpp | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/cpp/src/Ice/OpaqueEndpointI.cpp b/cpp/src/Ice/OpaqueEndpointI.cpp index fd5d489f80f..3fc6d7b913c 100644 --- a/cpp/src/Ice/OpaqueEndpointI.cpp +++ b/cpp/src/Ice/OpaqueEndpointI.cpp @@ -144,6 +144,43 @@ IceInternal::OpaqueEndpointI::toString() const return s.str(); } +Ice::EndpointInfoPtr +IceInternal::OpaqueEndpointI::getInfo() const +{ + class InfoI : public Ice::OpaqueEndpointInfo + { + public: + + InfoI(Ice::Short type, Ice::ByteSeq rawByes) : OpaqueEndpointInfo(-1, false, rawBytes), _type(type) + { + } + + virtual Ice::Short + type() const + { + return _type; + } + + virtual bool + datagram() const + { + return false; + } + + virtual bool + secure() const + { + return false; + } + + private: + + Ice::Short _type; + }; + + return new InfoI(_type, _rawBytes); +} + Short IceInternal::OpaqueEndpointI::type() const { @@ -192,12 +229,6 @@ IceInternal::OpaqueEndpointI::secure() const return false; } -Ice::ByteSeq -IceInternal::OpaqueEndpointI::rawBytes() const -{ - return _rawBytes; -} - TransceiverPtr IceInternal::OpaqueEndpointI::transceiver(EndpointIPtr& endp) const { |