summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/Protocol.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2001-11-15 23:20:31 +0000
committerMark Spruiell <mes@zeroc.com>2001-11-15 23:20:31 +0000
commit1743bba7dd12d7cab787cd9f16ecd1df875d421c (patch)
tree05a2621e726e688315d27fb1ed02bfc0637e71fc /java/src/IceInternal/Protocol.java
parentminor fixes (diff)
downloadice-1743bba7dd12d7cab787cd9f16ecd1df875d421c.tar.bz2
ice-1743bba7dd12d7cab787cd9f16ecd1df875d421c.tar.xz
ice-1743bba7dd12d7cab787cd9f16ecd1df875d421c.zip
initial check-in
Diffstat (limited to 'java/src/IceInternal/Protocol.java')
-rw-r--r--java/src/IceInternal/Protocol.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/java/src/IceInternal/Protocol.java b/java/src/IceInternal/Protocol.java
new file mode 100644
index 00000000000..4b326fef4fc
--- /dev/null
+++ b/java/src/IceInternal/Protocol.java
@@ -0,0 +1,38 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+package IceInternal;
+
+final class Protocol
+{
+ //
+ // Size of the Ice protocol header
+ //
+ // Protocol version (Byte)
+ // Encoding version (Byte)
+ // Message type (Byte)
+ // Message size (Int)
+ //
+ final static int headerSize = 7;
+
+ //
+ // The current Ice protocol and encoding version
+ //
+ final static byte protocolVersion = 0;
+ final static byte encodingVersion = 0;
+
+ //
+ // The Ice protocol message types
+ //
+ final static byte requestMsg = 0;
+ final static byte requestBatchMsg = 1;
+ final static byte replyMsg = 2;
+ final static byte closeConnectionMsg = 3;
+}