comparison src/wifibroadcast/WifiTCP.java @ 21:48d458bb921a

no select
author one
date Tue, 31 Jul 2012 17:31:08 +0900
parents bb2538b7eb8d
children
comparison
equal deleted inserted replaced
20:313dc81af36c 21:48d458bb921a
15 public class WifiTCP implements WifiReceiver { 15 public class WifiTCP implements WifiReceiver {
16 protected InetAddress mAddr; 16 protected InetAddress mAddr;
17 protected SocketAddress sAddr; 17 protected SocketAddress sAddr;
18 // select on DatagramChannel does not work now 18 // select on DatagramChannel does not work now
19 protected static Selector selector; 19 protected static Selector selector;
20 protected boolean selectMode = true; 20 protected boolean selectMode = false;
21 private SocketChannel sc; 21 private SocketChannel sc;
22 private static ServerSocketChannel ss; 22 private static ServerSocketChannel ss;
23 23
24 static { 24 static {
25 try { 25 try {