changeset 31:ebbc14dd1a1a

*** empty log message ***
author pin
date Tue, 16 Jan 2007 13:55:38 +0900
parents 5723cfd85c95
children 86e04721e463
files bin/remoteeditor/network/REP.class src/remoteeditor/network/REP.java
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
Binary file bin/remoteeditor/network/REP.class has changed
--- 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 {