summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/Protocol.java
diff options
context:
space:
mode:
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;
+}