Mercurial > hg > RemoteEditor > Eclipse
comparison src/remoteeditor/network/REP.java @ 30:5723cfd85c95
*** empty log message ***
author | pin |
---|---|
date | Tue, 16 Jan 2007 08:54:17 +0900 |
parents | d2f8d056aae3 |
children | ebbc14dd1a1a |
comparison
equal
deleted
inserted
replaced
29:d2f8d056aae3 | 30:5723cfd85c95 |
---|---|
266 public synchronized void sendCmd(int cmd2, int line, int length, String lineText) { | 266 public synchronized void sendCmd(int cmd2, int line, int length, String lineText) { |
267 //cmd = REP_INSERT_CMD; | 267 //cmd = REP_INSERT_CMD; |
268 //rWrite(pack(cmd2, sid, eid, seqid, line, lineText)); | 268 //rWrite(pack(cmd2, sid, eid, seqid, line, lineText)); |
269 try { | 269 try { |
270 myCmdList.add(new Rep_Cmd(cmd2, sid, eid, seqid, line, length, lineText)); | 270 myCmdList.add(new Rep_Cmd(cmd2, sid, eid, seqid, line, length, lineText)); |
271 System.out.println("myCmdList : " + myCmdList.toString()); | 271 //System.out.println("myCmdList : " + myCmdList.toString()); |
272 System.out.println("othersCmdList : " + othersCmdList.toString()); | 272 //System.out.println("othersCmdList : " + othersCmdList.toString()); |
273 new Translate(myCmdList, othersCmdList); | 273 new Translate(myCmdList, othersCmdList); |
274 for(Rep_Cmd userCmd:myCmdList){ | 274 for(Rep_Cmd userCmd:myCmdList){ |
275 rWrite(pack(userCmd.cmd, userCmd.sid, userCmd.eid, userCmd.seq, userCmd.lineno, userCmd.string)); | 275 rWrite(pack(userCmd.cmd, userCmd.sid, userCmd.eid, userCmd.seq, userCmd.lineno, userCmd.string)); |
276 myCmdList.remove(userCmd); | 276 myCmdList.remove(userCmd); |
277 } | 277 } |