summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Outgoing.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-02-22 10:38:32 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-02-22 10:38:32 +0000
commit476fb33e7cf9502ea027f2eb4fef856382fecef3 (patch)
treebbc027b022c48afa6bc3e3cec6e9862af3341208 /cppe/src/IceE/Outgoing.cpp
parentBut 716. (diff)
downloadice-476fb33e7cf9502ea027f2eb4fef856382fecef3.tar.bz2
ice-476fb33e7cf9502ea027f2eb4fef856382fecef3.tar.xz
ice-476fb33e7cf9502ea027f2eb4fef856382fecef3.zip
Fixed to allow better inlining.
Diffstat (limited to 'cppe/src/IceE/Outgoing.cpp')
-rw-r--r--cppe/src/IceE/Outgoing.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cppe/src/IceE/Outgoing.cpp b/cppe/src/IceE/Outgoing.cpp
index ed015cfd0f5..b644e7eed48 100644
--- a/cppe/src/IceE/Outgoing.cpp
+++ b/cppe/src/IceE/Outgoing.cpp
@@ -12,6 +12,8 @@
#include <IceE/Connection.h>
#include <IceE/Reference.h>
#include <IceE/LocalException.h>
+#include <IceE/Instance.h>
+#include <IceE/Protocol.h>
using namespace std;
using namespace Ice;
@@ -39,14 +41,14 @@ IceInternal::Outgoing::Outgoing(Connection* connection, Reference* ref, const st
_connection(connection),
_reference(ref),
_state(StateUnsent),
- _stream(ref->getInstance().get())
+ _stream(ref->getInstance().get(), ref->getInstance()->messageSizeMax())
{
switch(_reference->getMode())
{
case Reference::ModeTwoway:
case Reference::ModeOneway:
{
- _connection->prepareRequest(&_stream);
+ _stream.writeBlob(&(_connection->getRequestHeader()[0]), headerSize + sizeof(Int));
break;
}