diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-10-12 10:45:43 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-10-12 10:45:43 +0200 |
commit | f7ec04896f054614a1f08a66c4f7cf9fe71d8f6a (patch) | |
tree | 6d56b2613e3b5f15e7529dcc8afef495b9e566c7 /cpp/src/Ice/OpaqueEndpointI.cpp | |
parent | Bug 4222 - cannot install to network drive (diff) | |
download | ice-f7ec04896f054614a1f08a66c4f7cf9fe71d8f6a.tar.bz2 ice-f7ec04896f054614a1f08a66c4f7cf9fe71d8f6a.tar.xz ice-f7ec04896f054614a1f08a66c4f7cf9fe71d8f6a.zip |
Added ConnectionInfo/EndpointInfo, bug 4280 & 3964
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 { |