diff rep/ServerMainLoop.java @ 391:3b0a5a55e3ee

24
author one@firefly.cr.ie.u-ryukyu.ac.jp
date Mon, 10 Nov 2008 22:25:14 +0900
parents aa07134fea32
children 19705f4b8015
line wrap: on
line diff
--- a/rep/ServerMainLoop.java	Mon Nov 10 22:24:34 2008 +0900
+++ b/rep/ServerMainLoop.java	Mon Nov 10 22:25:14 2008 +0900
@@ -77,7 +77,7 @@
 		try {
 			ssc.socket().bind(new InetSocketAddress("::",receive_port));
 		} catch (SocketException e) {
-			// for some IPv6 imlementation
+			// for some IPv6 implementation
 			ssc.socket().bind(new InetSocketAddress(receive_port));
 		}
 		ssc.register(selector, SelectionKey.OP_ACCEPT,null); 
@@ -95,6 +95,8 @@
 	private boolean checkWaitingWrite() throws IOException {
 		PacketSet p = writeQueue.poll();
 		if (p!=null) {
+			logger.writeLog("writing: "+p.command+" to: "
+					+manager.editorList.editorByChannel(p.channel));
 			p.channel.write(p.command);
 			return true;
 		}