Add more constructor to NioSocketChannel

This commit is contained in:
Trustin Lee 2012-05-23 23:28:15 -07:00
parent a2d57144b4
commit 21a3d3fe02

View File

@ -47,7 +47,11 @@ public class NioSocketChannel extends AbstractNioChannel implements io.netty.cha
}
public NioSocketChannel() {
this(null, null, newSocket());
this(newSocket());
}
public NioSocketChannel(SocketChannel socket) {
this(null, null, socket);
}
public NioSocketChannel(Channel parent, Integer id, SocketChannel socket) {