public class Main {
private NioWorker h;
public Main() throws IOException {
h = new NioWorker();
HttpClient hc = new HttpClient(new InetSocketAddress("127.0.0.1", 80));
hc.register(h);
hc.appendSendData("GET /\r\n\r\n".getBytes());
for (int i = 0; i < 6; i++)
h.poll(10000);