Updating the first benchmark with new stubs/skeletons; somehow motion detection is...
[iot2.git] / iotjava / iotrmi / Java / IoTSocket.java
index 2cdb2581d3cc24a40ba2b9ab97a2084f418303f6..789c566e7cf96cb4ef7f87031e685975a9190ae6 100644 (file)
@@ -72,15 +72,15 @@ public abstract class IoTSocket {
                ByteBuffer bb = ByteBuffer.allocate(MSG_LEN_SIZE);
                bb.putInt(len);
                output.write(bb.array(), 0, MSG_LEN_SIZE);
-               System.out.println("Sender about to send: " + Arrays.toString(bb.array()));
+               //System.out.println("Sender about to send: " + Arrays.toString(bb.array()));
                output.flush();
                // Write the byte array
                output.write(vals, 0, len);
-               System.out.println("Sender sending: " + len);
+               //System.out.println("Sender sending: " + len);
                output.flush();
-               System.out.println("Sender about to receive ACK!");
+               //System.out.println("Sender about to receive ACK!");
                receiveAck();
-               System.out.println("Sender about to send ACK!\n\n");
+               //System.out.println("Sender about to send ACK!\n\n");
                sendAck();
        }
 
@@ -99,13 +99,13 @@ public abstract class IoTSocket {
                        return null;
                }
 
-               System.out.println("Receiver about to receive: " + input.available());
+               //System.out.println("Receiver about to receive: " + input.available());
                // Read the maxlen first - read 4 bytes here
                byte[] lenBytes = new byte[MSG_LEN_SIZE];
                input.read(lenBytes, 0, MSG_LEN_SIZE);
-               System.out.println("Receiver lenBytes: " + Arrays.toString(lenBytes));
+               //System.out.println("Receiver lenBytes: " + Arrays.toString(lenBytes));
                int maxlen = ByteBuffer.wrap(lenBytes).getInt();
-               System.out.println("Receiver received length: " + maxlen);
+               //System.out.println("Receiver received length: " + maxlen);
                // Receive until maxlen
                if (maxlen>BUFFSIZE) {
                        System.out.println("IoTSocketClient/Server: Sending more bytes then will fit in buffer! Number of bytes: " + maxlen);
@@ -128,9 +128,9 @@ public abstract class IoTSocket {
                }
                // we now send an acknowledgement to the server to let them
                // know we've got it
-               System.out.println("Receiver about to send ACK!");
+               //System.out.println("Receiver about to send ACK!");
                sendAck();
-               System.out.println("Receiver about to receive ACK!\n\n");
+               //System.out.println("Receiver about to receive ACK!\n\n");
                receiveAck();
 
                return val;