summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/TraceUtil.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-03-05 04:44:06 +0000
committerMichi Henning <michi@zeroc.com>2003-03-05 04:44:06 +0000
commitcbf6716868fd679530dc38be5b956ede9fbea612 (patch)
treebeaed87efc62a11ecdaae0778923176d6c00e31b /cpp/src/Ice/TraceUtil.cpp
parentuse depend tag (diff)
downloadice-cbf6716868fd679530dc38be5b956ede9fbea612.tar.bz2
ice-cbf6716868fd679530dc38be5b956ede9fbea612.tar.xz
ice-cbf6716868fd679530dc38be5b956ede9fbea612.zip
Merged in changes for protocol versioning.
Diffstat (limited to 'cpp/src/Ice/TraceUtil.cpp')
-rw-r--r--cpp/src/Ice/TraceUtil.cpp26
1 files changed, 19 insertions, 7 deletions
diff --git a/cpp/src/Ice/TraceUtil.cpp b/cpp/src/Ice/TraceUtil.cpp
index e87d2fcdfd8..1015ea834f6 100644
--- a/cpp/src/Ice/TraceUtil.cpp
+++ b/cpp/src/Ice/TraceUtil.cpp
@@ -82,13 +82,25 @@ printRequestHeader(ostream& s, BasicStream& stream)
static void
printHeader(ostream& s, BasicStream& stream)
{
- Byte protVer;
- stream.read(protVer);
-// s << "\nprotocol version = " << static_cast<int>(protVer);
-
- Byte encVer;
- stream.read(encVer);
-// s << "\nencoding version = " << static_cast<int>(encVer);
+ Byte magic;
+ stream.read(magic); // Don't bother printing the magic number
+ stream.read(magic);
+ stream.read(magic);
+ stream.read(magic);
+
+ Byte pMajor;
+ Byte pMinor;
+ stream.read(pMajor);
+ stream.read(pMinor);
+// s << "\nprotocol version = " << static_cast<unsigned>(pMajor)
+// << "." << static_cast<unsigned>(pMinor);
+
+ Byte eMajor;
+ Byte eMinor;
+ stream.read(eMajor);
+ stream.read(eMinor);
+// s << "\nencoding version = " << static_cast<unsigned>(eMajor)
+// << "." << static_cast<unsigned>(eMinor);
Byte type;
stream.read(type);