Mercurial > hg > RemoteEditor > REPSessionManager
changeset 99:2f79cdc45a2e
*** empty log message ***
author | pin |
---|---|
date | Sat, 22 Dec 2007 11:02:39 +0900 |
parents | cc67a5a81535 |
children | 25bf89525e70 |
files | rep/SessionManager.java |
diffstat | 1 files changed, 17 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/SessionManager.java Sat Dec 22 10:31:20 2007 +0900 +++ b/rep/SessionManager.java Sat Dec 22 11:02:39 2007 +0900 @@ -304,16 +304,26 @@ case REP.SMCMD_UPDATE: - //SessionのownerのEditor - editor = new Editor(channel); - editor.setName(receivedCommand.string); + SessionXMLDecoder decoder3 = new SessionXMLDecoder(); + SessionList receivedSessionList3 = decoder3.decode(receivedCommand.string); + + //SessionListへ追加し変換テーブルを生成する。 + sessionlist.update(channel, receivedSessionList3); + + smList.sendExcept(channel, receivedCommand); - session = new Session(editor); - session.addEditor(editor); + //SessionのownerのEditor + //editor = new Editor(channel); + //editor.setName(receivedCommand.string); + + - sessionlist.addSession(session); + //session = new Session(editor); + //session.addEditor(editor); - gui.setComboSession(session.getSID(), session.getName()); + //sessionlist.addSession(session); + + //gui.setComboSession(session.getSID(), session.getName()); //if(isMaster){ // receivedCommand.setCMD(REP.SMCMD_UPDATE_ACK);