Mercurial > hg > RemoteEditor > REPSessionManager
changeset 215:7649238aaf66
*** empty log message ***
author | pin |
---|---|
date | Sat, 30 Aug 2008 21:53:08 +0900 |
parents | ed43dc6ccb07 |
children | f92a3ffaf31f |
files | rep/SessionManager.java test/sematest/TestSessionManager.java |
diffstat | 2 files changed, 3 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/SessionManager.java Sat Aug 30 19:26:41 2008 +0900 +++ b/rep/SessionManager.java Sat Aug 30 21:53:08 2008 +0900 @@ -72,19 +72,13 @@ //getAllByNameで取れた全てのアドレスに対してbindする ssc.socket().bind(new InetSocketAddress(port)); ssc.register(selector, SelectionKey.OP_ACCEPT, new REPHandlerImpl(-1, this)); - //registerChannel(selector, ssc, SelectionKey.OP_ACCEPT); - - //sessionlist = new SessionList(); sessionList = new LinkedList<Session>(); smList = new SessionManagerList(); - //ownEditorList = new EditorList(); editorList = new LinkedList<Editor>(); waitingCommandInMerge = new LinkedList<PacketSet>(); - waitingQueue = new LinkedBlockingQueue<SessionManagerEvent>(); - // main loop - //mainLoop(); + } private void mainLoop() throws IOException { @@ -95,7 +89,7 @@ } continue; } - selector.select(); + System.out.println(selector.select()); select(); } }
--- a/test/sematest/TestSessionManager.java Sat Aug 30 19:26:41 2008 +0900 +++ b/test/sematest/TestSessionManager.java Sat Aug 30 21:53:08 2008 +0900 @@ -19,7 +19,7 @@ } public static void main(String[] args){ - REPServerSocketChannel.isSimulation = false; + REPServerSocketChannel.isSimulation = true; TestSessionManager test = new TestSessionManager(1, 0, 2); logger.setLogLevel(5); test.startTest();