diff options
author | Marc Laukien <marc@zeroc.com> | 2002-01-14 18:43:01 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-01-14 18:43:01 +0000 |
commit | f453785066eff4e8d9f5c7fd63bd01b4260020ed (patch) | |
tree | 1410e9fc19a52042879f9f06fe9e6c1ecb443e2a /cpp/src/Ice/Outgoing.cpp | |
parent | file ServerBlobject.cpp was initially added on branch glacier. (diff) | |
download | ice-f453785066eff4e8d9f5c7fd63bd01b4260020ed.tar.bz2 ice-f453785066eff4e8d9f5c7fd63bd01b4260020ed.tar.xz ice-f453785066eff4e8d9f5c7fd63bd01b4260020ed.zip |
glacier intergration
Diffstat (limited to 'cpp/src/Ice/Outgoing.cpp')
-rw-r--r-- | cpp/src/Ice/Outgoing.cpp | 38 |
1 files changed, 8 insertions, 30 deletions
diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp index fc8f723fdc4..d36d52e3134 100644 --- a/cpp/src/Ice/Outgoing.cpp +++ b/cpp/src/Ice/Outgoing.cpp @@ -14,8 +14,6 @@ #include <Ice/Reference.h> #include <Ice/Exception.h> #include <Ice/Instance.h> -#include <Ice/Proxy.h> -#include <Ice/ProxyFactory.h> using namespace std; using namespace Ice; @@ -38,8 +36,8 @@ IceInternal::NonRepeatable::get() const return _ex.get(); } -IceInternal::Outgoing::Outgoing(const ConnectionPtr& connection, const ReferencePtr& ref, bool sendProxy, - const string& operation, bool nonmutating, const Context& context) : +IceInternal::Outgoing::Outgoing(const ConnectionPtr& connection, const ReferencePtr& ref, const string& operation, + bool nonmutating, const Context& context) : _connection(connection), _reference(ref), _state(StateUnsent), @@ -64,17 +62,8 @@ IceInternal::Outgoing::Outgoing(const ConnectionPtr& connection, const Reference } } - _os.write(sendProxy); - if (sendProxy) - { - ObjectPrx proxy = _reference->instance->proxyFactory()->referenceToProxy(_reference); - _os.write(proxy); - } - else - { - _reference->identity.__write(&_os); - _os.write(_reference->facet); - } + _reference->identity.__write(&_os); + _os.write(_reference->facet); _os.write(operation); _os.write(nonmutating); _os.write(Int(context.size())); @@ -87,8 +76,8 @@ IceInternal::Outgoing::Outgoing(const ConnectionPtr& connection, const Reference // // Input and output parameters are always sent in an - // encapsulation, which makes it possible to forward oneway - // requests as blobs. + // encapsulation, which makes it possible to forward requests as + // blobs. // _os.startWriteEncaps(); } @@ -128,8 +117,8 @@ IceInternal::Outgoing::invoke() if (_state == StateInProgress) { timedOut = true; - _state = StateLocalException; - _exception = auto_ptr<LocalException>(new TimeoutException(__FILE__, __LINE__)); + _state = StateLocalException; + _exception = auto_ptr<LocalException>(new TimeoutException(__FILE__, __LINE__)); } } else @@ -183,11 +172,6 @@ IceInternal::Outgoing::invoke() throw LocationForward(p); } - if (_state == StateProxyRequested) - { - throw ProxyRequested(); - } - assert(_state == StateOK); break; } @@ -262,12 +246,6 @@ IceInternal::Outgoing::finished(BasicStream& is) break; } - case DispatchProxyRequested: - { - _state = StateProxyRequested; - break; - } - case DispatchObjectNotExist: { _state = StateLocalException; |