diff src/remoteeditor/network/REP.java @ 19:cc68a00f9850

*** empty log message ***
author pin
date Tue, 31 Oct 2006 16:30:54 +0900
parents e87cae12907e
children e5472194938a
line wrap: on
line diff
--- a/src/remoteeditor/network/REP.java	Tue Oct 31 12:11:11 2006 +0900
+++ b/src/remoteeditor/network/REP.java	Tue Oct 31 16:30:54 2006 +0900
@@ -49,6 +49,7 @@
 	
 	List myCmdList = new LinkedList();
 	List othersCmdList = new LinkedList();
+	private String filename;
 	
 	public REP() throws Exception {
 		String host = "localhost";
@@ -79,6 +80,7 @@
 		
 		dialog = new InputDialog(shell, "repput", "read packet:" + cmd +", "+ sid +", "+ eid +", "+ seqid +", "+ lineno +", "+ textsiz +", "+ string, "hugo", null);
 		if(dialog.open() == Window.OK){
+			filename = dialog.getValue();
 			put();
 		}
 		
@@ -99,7 +101,7 @@
 	}
 	
 	public void put() throws Exception {
-		sc.write(pack(REP_PUT_CMD, sid, eid, seqid, lineno, "filename"));
+		sc.write(pack(REP_PUT_CMD, sid, eid, seqid, lineno, filename));
 		unpack();
 		System.out.println("read packet:" + cmd +", "+ sid +", "+ eid +", "+ seqid +", "+ lineno +", "+ textsiz +", "+ string);
 	}