package com.wizzardo.epoll;

/**
 * @author: wizzardo
 * Date: 5/8/14
 */
public class EpollServer<T extends Connection> extends EpollCore<T> {

    public EpollServer(int port) {
        this(null, port);
    }

    public EpollServer(String host, int port) {
        this(host, port, 100);
    }

    public EpollServer(String host, int port, int maxEvents) {
        super(maxEvents);
        bind(host, port);
    }
}

@@ -138,16 +138,64 @@
 e%3CT%3E %7B%0A%0A
+    private String host;%0A    private int port;%0A%0A
     publ
@@ -450,21 +450,214 @@
 host, port);
+%0A%0A        this.host = host == null ? %220.0.0.0%22 : host;%0A        this.port = port;%0A    %7D%0A%0A    public String getHost() %7B%0A        return host;%0A    %7D%0A%0A    public int getPort() %7B%0A        return port;
 %0A    %7D%0A%7D%0A

add host and port getters