public class Connection extends Stream {
private final Socket s;
public final String vhost;
- public Connection(Socket s, String vhost) { super(s); this.vhost = vhost; this.s = s; }
+ public Connection(Socket s, String vhost) { super(s); this.vhost = vhost; this.s = s; setTcpNoDelay(true); }
public int getLocalPort() { return s.getLocalPort(); }
public int getRemotePort() { return s.getPort(); }
public InetAddress getRemoteAddress() { return ((InetSocketAddress)s.getRemoteSocketAddress()).getAddress(); }