@Test public void testTcpInfo() throws Exception { EventLoopGroup group = new EpollEventLoopGroup(1); try { Bootstrap bootstrap = new Bootstrap(); EpollSocketChannel ch = (EpollSocketChannel) bootstrap.group(group) .channel(EpollSocketChannel.class) .handler(new ChannelInboundHandlerAdapter()) .bind(new InetSocketAddress(0)).syncUninterruptibly().channel(); EpollTcpInfo info = ch.tcpInfo(); assertTcpInfo0(info); ch.close().syncUninterruptibly(); } finally { group.shutdownGracefully(); } }
public EpollTcpInfo tcpInfo() { return tcpInfo(new EpollTcpInfo()); }
EpollSocketChannel extends AbstractEpollStreamChannel implements SocketChannel { public EpollTcpInfo tcpInfo() { return tcpInfo(new EpollTcpInfo()); } }
EpollSocketChannel extends AbstractEpollStreamChannel implements SocketChannel { public EpollTcpInfo tcpInfo() { return tcpInfo(new EpollTcpInfo()); } EpollSocketChannel(Channel parent, int fd, InetSocketAddress remote);  EpollSocketChannel();  EpollSocketChannel(FileDescriptor fd); }
EpollSocketChannel extends AbstractEpollStreamChannel implements SocketChannel { public EpollTcpInfo tcpInfo() { return tcpInfo(new EpollTcpInfo()); } EpollSocketChannel(Channel parent, int fd, InetSocketAddress remote);  EpollSocketChannel();  EpollSocketChannel(FileDescriptor fd); EpollTcpInfo tcpInfo(); EpollTcpInfo tcpInfo(EpollTcpInfo info); @Override InetSocketAddress remoteAddress(); @Override InetSocketAddress localAddress(); @Override EpollSocketChannelConfig config(); @Override boolean isInputShutdown(); @Override boolean isOutputShutdown(); @Override ChannelFuture shutdownOutput(); @Override ChannelFuture shutdownOutput(final ChannelPromise promise); @Override ServerSocketChannel parent(); }
EpollSocketChannel extends AbstractEpollStreamChannel implements SocketChannel { public EpollTcpInfo tcpInfo() { return tcpInfo(new EpollTcpInfo()); } EpollSocketChannel(Channel parent, int fd, InetSocketAddress remote);  EpollSocketChannel();  EpollSocketChannel(FileDescriptor fd); EpollTcpInfo tcpInfo(); EpollTcpInfo tcpInfo(EpollTcpInfo info); @Override InetSocketAddress remoteAddress(); @Override InetSocketAddress localAddress(); @Override EpollSocketChannelConfig config(); @Override boolean isInputShutdown(); @Override boolean isOutputShutdown(); @Override ChannelFuture shutdownOutput(); @Override ChannelFuture shutdownOutput(final ChannelPromise promise); @Override ServerSocketChannel parent();  }