import java.io.*;
import java.util.*;
import java.util.regex.*;
import java.net.*;
import java.nio.*;
import java.nio.channels.*;
public class HW76 implements HtmlText {
private static final String HOST = "http://localhost";
private static final String PORT = ":80/";
private static final Map MEMBER = new TreeMap() {
{
put("田中", "tanaka");
put("鈴木", "suzuki");
put("佐藤", "satou");
put("高橋", "takahashi");
put("山田", "yamada");
}
};
private static Map partic = Collections.synchronizedMap(new TreeMap());
private static List chatLog = new ArrayList();
public static void main(String[] args) {
Selector sel;
try {
sel = Selector.open();
ServerSocketChannel sv = ServerSocketChannel.open();
sv.configureBlocking(false);
sv.socket().bind(new InetSocketAddress(80));
sv.register(sel, SelectionKey.OP_ACCEPT);
sv = ServerSocketChannel.open();
sv.configureBlocking(false);
sv.socket().bind(new InetSocketAddress(90));
sv.register(sel, SelectionKey.OP_ACCEPT, new Object());