First version of skeleton-stub communication using queue and 2 sockets (one send...
[iot2.git] / iotjava / iotrmi / Java / IoTRMIUtil.java
index c4d383b829ee253cc82fc62d3fa826acbd4baa6c..59b3a49bfc90223a0ffef7ee5c8fdc2096cabed2 100644 (file)
@@ -37,10 +37,13 @@ public class IoTRMIUtil {
        /**
         * Class Constants
         */
-       public final static int OBJECT_ID_LEN = 4;      // 4 bytes = 32 bits
-       public final static int METHOD_ID_LEN = 4;      // 4 bytes = 32 bits
-       public final static int PARAM_LEN = 4;          // 4 bytes = 32 bits (4-byte field that stores the length of the param)
-       public final static int RETURN_LEN = 4;         // 4 bytes = 32 bits (4-byte field that stores the length of the return object)
+       public final static int OBJECT_ID_LEN = 4;              // 4 bytes = 32 bits
+       public final static int METHOD_ID_LEN = 4;              // 4 bytes = 32 bits
+       public final static int PACKET_TYPE_LEN = 4;    // 4 bytes = 32 bits
+       public final static int PARAM_LEN = 4;                  // 4 bytes = 32 bits (4-byte field that stores the length of the param)
+       public final static int RETURN_LEN = 4;                 // 4 bytes = 32 bits (4-byte field that stores the length of the return object)
+       public final static int RET_VAL_TYPE = -1;              // Packet type of return value
+       public final static int METHOD_TYPE = 1;                // Packet type of method
 
        public final static int SHT_LEN = 2;
        public final static int INT_LEN = 4;