/[Apache-SVN]/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/TcpReplicationThread.java
ViewVC logotype

Diff of /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/TcpReplicationThread.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/TcpReplicationThread.java	2006/03/01 22:44:16	382187
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/TcpReplicationThread.java	2006/03/01 23:04:11	382188
@@ -41,7 +41,7 @@ public class TcpReplicationThread extend
     public static final int OPTION_SYNCHRONIZED = 0x0002;
     public static final int OPTION_DIRECT_BUFFER = 0x0004;
 
-    public static final byte[] ACK_COMMAND = new byte[] {6, 2, 3};
+    
     private static org.apache.commons.logging.Log log =
         org.apache.commons.logging.LogFactory.getLog( TcpReplicationThread.class );
     private ByteBuffer buffer = null;
@@ -222,7 +222,7 @@ public class TcpReplicationThread extend
     protected void sendAck(SelectionKey key, SocketChannel channel) {
         
         try {
-            channel.write(ByteBuffer.wrap(ACK_COMMAND));
+            channel.write(ByteBuffer.wrap(Constants.ACK_COMMAND));
             if (log.isTraceEnabled()) {
                 log.trace("ACK sent to " + channel.socket().getPort());
             }

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26