Mercurial > hg > RemoteEditor > REPSessionManager
changeset 92:ec0b37884758
*** empty log message ***
author | pin |
---|---|
date | Fri, 21 Dec 2007 18:20:13 +0900 |
parents | b299e82cc05f |
children | 1a5b3c2b2268 |
files | rep/EditorList.java rep/SessionManager.java |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/EditorList.java Fri Dec 21 18:20:13 2007 +0900 +++ b/rep/EditorList.java Fri Dec 21 18:20:13 2007 +0900 @@ -89,8 +89,9 @@ String[] splited = hostport.split(":"); System.out.println(splited[0] + "," + editor.getHost()); if(splited[0].equals(editor.getHost())){ - //System.out.println("akira"); + return editor; } + //String hostandport = editor.getHost() + ":" + editor.getPort(); //if(hostport.equals(hostandport)){ // return editor;
--- a/rep/SessionManager.java Fri Dec 21 18:20:13 2007 +0900 +++ b/rep/SessionManager.java Fri Dec 21 18:20:13 2007 +0900 @@ -148,7 +148,7 @@ case REP.SMCMD_PUT: editor = new Editor(channel); editor.setHost(myHost); - allEditorList.addEditor(channel); + allEditorList.addEditor(editor); editor.setEID(1); editor.setName(receivedCommand.string); session = new Session(editor);