# HG changeset patch # User pin # Date 1168923338 -32400 # Node ID ebbc14dd1a1ade7c03152efef9fd205a8f3a6a2f # Parent 5723cfd85c955ff2afa01b0b485c472991a49cd0 *** empty log message *** diff -r 5723cfd85c95 -r ebbc14dd1a1a bin/remoteeditor/network/REP.class Binary file bin/remoteeditor/network/REP.class has changed diff -r 5723cfd85c95 -r ebbc14dd1a1a src/remoteeditor/network/REP.java --- a/src/remoteeditor/network/REP.java Tue Jan 16 08:54:17 2007 +0900 +++ b/src/remoteeditor/network/REP.java Tue Jan 16 13:55:38 2007 +0900 @@ -21,6 +21,7 @@ SocketChannel sc; int cmd; int eid; + int eid2; int lineno; int sid; int seqid; @@ -102,6 +103,7 @@ public void join() { rWrite(pack( REP_JOIN_CMD, sid, eid, seqid, lineno, "afro")); unpack(); + eid2 = eid; System.out.println("read packet:" + cmd +", "+ sid +", "+ eid +", "+ seqid +", "+ lineno +", "+ textsiz +", "+ string); } @@ -195,7 +197,7 @@ String text = ""; cmd = header.getInt(); sid = header.getInt(); - int eid2 = header.getInt(); + eid = header.getInt(); seqid = header.getInt(); lineno = header.getInt(); textsiz = header.getInt()/2; @@ -263,7 +265,7 @@ } } - public synchronized void sendCmd(int cmd2, int line, int length, String lineText) { + public void sendCmd(int cmd2, int line, int length, String lineText) { //cmd = REP_INSERT_CMD; //rWrite(pack(cmd2, sid, eid, seqid, line, lineText)); try {