summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Outgoing.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-04-18 14:33:16 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-04-18 14:33:16 +0200
commit2ba4d4e0ca7aeade69ee00ab17d5fa1b69372ffc (patch)
tree0a381f9b284eb7ca5acc9bca5a97659d19874f9d /cpp/src/Ice/Outgoing.cpp
parentICE-4828 - Buffer.h undeclared ptrdiff_t issue on OpenSUSE (diff)
downloadice-2ba4d4e0ca7aeade69ee00ab17d5fa1b69372ffc.tar.bz2
ice-2ba4d4e0ca7aeade69ee00ab17d5fa1b69372ffc.tar.xz
ice-2ba4d4e0ca7aeade69ee00ab17d5fa1b69372ffc.zip
Added support for encoding versioning
Diffstat (limited to 'cpp/src/Ice/Outgoing.cpp')
-rw-r--r--cpp/src/Ice/Outgoing.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp
index 8024b9e64a7..e2467912f92 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:
@@ -150,13 +151,6 @@ IceInternal::Outgoing::Outgoing(RequestHandler* handler, const string& operation
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)
{
}