diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-05 02:35:27 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-05 02:35:27 +0000 |
commit | 21d6da9ae8b7f87bd35be4c55122545c2a6c0987 (patch) | |
tree | c12260002ff01312c17717f2ea569e1ab9684eea /cpp/src/Ice/Protocol.h | |
parent | fix for STLport (diff) | |
download | ice-21d6da9ae8b7f87bd35be4c55122545c2a6c0987.tar.bz2 ice-21d6da9ae8b7f87bd35be4c55122545c2a6c0987.tar.xz ice-21d6da9ae8b7f87bd35be4c55122545c2a6c0987.zip |
batch-mode
Diffstat (limited to 'cpp/src/Ice/Protocol.h')
-rw-r--r-- | cpp/src/Ice/Protocol.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/cpp/src/Ice/Protocol.h b/cpp/src/Ice/Protocol.h new file mode 100644 index 00000000000..a0f5216a207 --- /dev/null +++ b/cpp/src/Ice/Protocol.h @@ -0,0 +1,54 @@ +// ********************************************************************** +// +// Copyright (c) 2002 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#ifndef ICE_PROTOCOL_H +#define ICE_PROTOCOL_H + +#include <Ice/Config.h> + +namespace IceInternal +{ + +// +// Size of the Ice protocol header +// +// Protocol version (Byte) +// Encoding version (Byte) +// Message type (Byte) +// Message size (Int) +// +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; +const ::Ice::Byte encodingVersion = 0; + +// +// The Ice protocol message types +// +const ::Ice::Byte requestMsg = 0; +const ::Ice::Byte requestBatchMsg = 1; +const ::Ice::Byte replyMsg = 2; +const ::Ice::Byte closeConnectionMsg = 3; + +} + +#endif |