Mercurial > hg > RemoteEditor > REPSessionManager
diff rep/SessionList.java @ 317:c83a3faec487
*** empty log message ***
author | kono |
---|---|
date | Tue, 07 Oct 2008 21:48:31 +0900 |
parents | 77f443f6dc9f |
children | dfed28488274 |
line wrap: on
line diff
--- a/rep/SessionList.java Tue Oct 07 18:15:33 2008 +0900 +++ b/rep/SessionList.java Tue Oct 07 21:48:31 2008 +0900 @@ -48,11 +48,11 @@ } - public void addEditor(REPSocketChannel<REPCommand> channel, int sid, REPCommand repCmd) { + public void addEditor(SessionManager manager,REPSocketChannel<REPCommand> channel, int sid, REPCommand repCmd) { int editorID = repCmd.eid; // if(session3.get(sid) == null) System.out.println("ぬるぽ!"); // session3.get(sid).addEditor(editorID, channel); - sessionLinkedList.get(sid-1).addEditor(editorID, channel); //本当はforループで検索しないといけないよ。 + sessionLinkedList.get(sid-1).addEditor(manager,editorID, channel); //本当はforループで検索しないといけないよ。 } // public int getSessionID(SocketChannel channel) { @@ -113,9 +113,9 @@ } - public void addEditor(REPSocketChannel<REPCommand> editorChannel, int sid, int eid) { + public void addEditor(SessionManager manager,REPSocketChannel<REPCommand> editorChannel, int sid, int eid) { // session3.get(sid).addEditor(eid, editorChannel); - sessionLinkedList.get(sid-1).addEditor(eid, editorChannel); + sessionLinkedList.get(sid-1).addEditor(manager,eid, editorChannel); } public void sendSelect(int sid) {