瀏覽代碼

some fixes on mmocore : a typo and commented out a useless instruction

wooden 17 年之前
父節點
當前提交
fc69df1c85

+ 1 - 1
MMOCore/src/org/mmocore/network/SelectorConfig.java

@@ -71,7 +71,7 @@ public class SelectorConfig<T extends MMOClient>
     
     public int getWriteBufferSize()
     {
-        return READ_BUFFER_SIZE;
+        return WRITE_BUFFER_SIZE;
     }
     
     public int getHelperBufferSize()

+ 1 - 1
MMOCore/src/org/mmocore/network/SelectorThread.java

@@ -798,7 +798,7 @@ public class SelectorThread<T extends MMOClient> extends Thread
         
         boolean ret = client.decrypt(buf, dataSize);
         
-        buf.position(pos);
+        //buf.position(pos); //can be annoying for some decrypt impl decrypt should place the pos at the right place itself 
         
         //System.out.println("pCP -> BUF: POS: "+buf.position()+" - LIMIT: "+buf.limit()+" == Packet: SIZE: "+dataSize);