try {
ServerSocketChannel serverSocket = ServerSocketChannel.open();
serverSocket.configureBlocking(false);
serverSocket.socket().bind(new InetSocketAddress(Config.httpPort));
Server server = new Server(serverSocket);
TheSelector.registerChannel(serverSocket, SelectionKey.OP_ACCEPT, server);
while (true) {
Thread.yield();