diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-09 22:56:41 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-09 22:56:41 +0000 |
commit | 0e122dd0b3449df6b26274ec9b8a1f16b7d3e28b (patch) | |
tree | f383102d510396828b0a147f20f1441f67761bb1 /cpp/src | |
parent | fixes, tests, etc. (diff) | |
download | ice-0e122dd0b3449df6b26274ec9b8a1f16b7d3e28b.tar.bz2 ice-0e122dd0b3449df6b26274ec9b8a1f16b7d3e28b.tar.xz ice-0e122dd0b3449df6b26274ec9b8a1f16b7d3e28b.zip |
fixes
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/PicklerI.cpp | 10 | ||||
-rw-r--r-- | cpp/src/Ice/Protocol.h | 9 | ||||
-rw-r--r-- | cpp/src/IcePack/Activator.h | 4 |
3 files changed, 6 insertions, 17 deletions
diff --git a/cpp/src/Ice/PicklerI.cpp b/cpp/src/Ice/PicklerI.cpp index fc2317e60c0..10fc6221063 100644 --- a/cpp/src/Ice/PicklerI.cpp +++ b/cpp/src/Ice/PicklerI.cpp @@ -35,8 +35,8 @@ ObjectPtr Ice::PicklerI::unpickle(std::istream& in) { Stream s(_instance); - s.b.resize(encapsHeaderSize); - in.read(s.b.begin(), encapsHeaderSize); + s.b.resize(4); // Encapsulation length == Ice::Int + in.read(s.b.begin(), 4); if (in.eof()) { throw UnmarshalOutOfBoundsException(__FILE__, __LINE__); @@ -47,15 +47,13 @@ Ice::PicklerI::unpickle(std::istream& in) } s.i = s.b.begin(); - Byte encVer; - s.read(encVer); Int sz; s.read(sz); // Don't use s.b.resize() here, otherwise no size sanity checks // will be done - s.resize(encapsHeaderSize + sz); - in.read(s.b.begin() + encapsHeaderSize, sz); + s.resize(4 + sz); + in.read(s.b.begin() + 4, sz); if (in.eof()) { throw UnmarshalOutOfBoundsException(__FILE__, __LINE__); diff --git a/cpp/src/Ice/Protocol.h b/cpp/src/Ice/Protocol.h index a0f5216a207..516d0f5aaa8 100644 --- a/cpp/src/Ice/Protocol.h +++ b/cpp/src/Ice/Protocol.h @@ -27,15 +27,6 @@ namespace IceInternal const ::Ice::Int headerSize = 7; // -// Size of the Ice encapsulation header -// -// Encoding version (Byte) -// Encapsulation length (Int) -// -const ::Ice::Int encapsHeaderSize = 5; - - -// // The current Ice protocol and encoding version // const ::Ice::Byte protocolVersion = 0; diff --git a/cpp/src/IcePack/Activator.h b/cpp/src/IcePack/Activator.h index d433783fc2f..4d578bbca8c 100644 --- a/cpp/src/IcePack/Activator.h +++ b/cpp/src/IcePack/Activator.h @@ -11,11 +11,11 @@ #ifndef ICE_PACK_ACTIVATOR_H #define ICE_PACK_ACTIVATOR_H -#include <IcePack/AdminF.h> - namespace IcePack { +struct ServerDescription; + class Activator : public JTCThread, public JTCMutex { public: |