diff options
Diffstat (limited to 'cpp/src/Ice/Outgoing.cpp')
-rw-r--r-- | cpp/src/Ice/Outgoing.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp index 5b0a74d980a..e922fb30486 100644 --- a/cpp/src/Ice/Outgoing.cpp +++ b/cpp/src/Ice/Outgoing.cpp @@ -84,10 +84,11 @@ IceInternal::Outgoing::Outgoing(RequestHandler* handler, const string& operation const Context* context) : _handler(handler), _state(StateUnsent), - _is(handler->getReference()->getInstance().get()), - _os(handler->getReference()->getInstance().get()), + _encoding(handler->getReference()->getEncoding()), + _is(handler->getReference()->getInstance().get(), Ice::currentProtocolEncoding), + _os(handler->getReference()->getInstance().get(), Ice::currentProtocolEncoding), _sent(false) -{ +{ switch(_handler->getReference()->getMode()) { case Reference::ModeTwoway: @@ -132,7 +133,7 @@ IceInternal::Outgoing::Outgoing(RequestHandler* handler, const string& operation // // Explicit context // - __writeContext(&_os, *context); + _os.write(*context); } else { @@ -143,20 +144,13 @@ IceInternal::Outgoing::Outgoing(RequestHandler* handler, const string& operation const Context& prxContext = _handler->getReference()->getContext()->getValue(); if(implicitContext == 0) { - __writeContext(&_os, prxContext); + _os.write(prxContext); } else { implicitContext->write(prxContext, &_os); } } - - // - // Input and output parameters are always sent in an - // encapsulation, which makes it possible to forward requests as - // blobs. - // - _os.startWriteEncaps(); } catch(const LocalException& ex) { @@ -169,8 +163,6 @@ IceInternal::Outgoing::invoke() { assert(_state == StateUnsent); - _os.endWriteEncaps(); - switch(_handler->getReference()->getMode()) { case Reference::ModeTwoway: @@ -543,7 +535,7 @@ IceInternal::BatchOutgoing::BatchOutgoing(RequestHandler* handler) : _handler(handler), _connection(0), _sent(false), - _os(handler->getReference()->getInstance().get()) + _os(handler->getReference()->getInstance().get(), Ice::currentProtocolEncoding) { } @@ -551,7 +543,7 @@ IceInternal::BatchOutgoing::BatchOutgoing(ConnectionI* connection, Instance* ins _handler(0), _connection(connection), _sent(false), - _os(instance) + _os(instance, Ice::currentProtocolEncoding) { } |