You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jg...@apache.org on 2006/10/03 04:26:58 UTC

svn commit: r452294 - /geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TcpSocketServerTest.java

Author: jgenender
Date: Mon Oct  2 19:26:57 2006
New Revision: 452294

URL: http://svn.apache.org/viewvc?view=rev&rev=452294
Log:
Update a little doc

Modified:
    geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TcpSocketServerTest.java

Modified: geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TcpSocketServerTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TcpSocketServerTest.java?view=diff&rev=452294&r1=452293&r2=452294
==============================================================================
--- geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TcpSocketServerTest.java (original)
+++ geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TcpSocketServerTest.java Mon Oct  2 19:26:57 2006
@@ -95,11 +95,13 @@
         //Get the command length
         int length = receiveHeader.getInt();
 
+        //pull the command
         commandBuffer = ByteBuffer.allocate(length);
         bcr.reset(channel, commandBuffer);
         int count = bcr.readBuffer(length);
         assert count == length;
 
+        //Calc a checksum
         byte commandArray[] = commandBuffer.array();
         Checksum calcChecksum = new CRC32();
         calcChecksum.update(commandArray, 0, commandArray.length);