geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r452294 - /geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TcpSocketServerTest.java
Date Tue, 03 Oct 2006 02:26:58 GMT
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);



Mime
View raw message