Пример #1
0
 EpollSocketChannel(Channel parent, int fd) {
   super(parent, fd, Native.EPOLLIN, true);
   config = new EpollSocketChannelConfig(this);
   // Directly cache the remote and local addresses
   // See https://github.com/netty/netty/issues/2359
   remote = Native.remoteAddress(fd);
   local = Native.localAddress(fd);
 }