Mercurial > hg > RemoteEditor > REPSessionManager
diff rep/FirstConnector.java @ 360:b25f832f875d
*** empty log message ***
author | kono |
---|---|
date | Sun, 19 Oct 2008 20:30:52 +0900 |
parents | fa041bae35f1 |
children | c965ef2b5fd6 |
line wrap: on
line diff
--- a/rep/FirstConnector.java Sun Oct 19 19:24:38 2008 +0900 +++ b/rep/FirstConnector.java Sun Oct 19 20:30:52 2008 +0900 @@ -35,6 +35,9 @@ // 1対1でない場合は、multiplexerを挿めば良い Editor editor = manager.newEditor(channel); editor.setHost(manager.myHost); + command.eid = editor.eid; + command.sid = -1; + editor.setSID(-1); fw = editor; break; } @@ -44,8 +47,11 @@ // session manager IDが付いているので、global unique Editor editor = manager.newEditor(channel); Session session = manager.newSession(editor); + session.setName(command.string); + editor.setName(command.string); editor.setSID(session.getSID()); - editor.setHost(manager.myHost); + command.eid = editor.eid; + command.sid = editor.sid; fw = editor; break; } @@ -64,7 +70,7 @@ //myHost を設定。 //立ち上げ時にやるとlocalhostしか取れない if(manager.myHost == null) manager.setMyHostName(getLocalHostName()); - + fw.setHost(manager.myHost); fw.setMode(command.cmd); manager.registerChannel(channel, fw); manager.sessionManage(fw, command);