Package io.netty.channel.epoll.AbstractEpollChannel

Examples of io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe


                boolean write = (ev & Native.EPOLLOUT) != 0;
                boolean close = (ev & Native.EPOLLRDHUP) != 0;

                AbstractEpollChannel ch = ids.get(id);
                if (ch != null) {
                    AbstractEpollUnsafe unsafe = (AbstractEpollUnsafe) ch.unsafe();
                    if (write && ch.isOpen()) {
                        // force flush of data as the epoll is writable again
                        unsafe.epollOutReady();
                    }
                    if (read && ch.isOpen()) {
                        // Something is ready to read, so consume it now
                        unsafe.epollInReady();
                    }
                    if (close && ch.isOpen()) {
                        unsafe.epollRdHupReady();
                    }
                }
            }
        }
    }
View Full Code Here


                boolean write = (ev & Native.EPOLLOUT) != 0;
                boolean close = (ev & Native.EPOLLRDHUP) != 0;

                AbstractEpollChannel ch = ids.get(id);
                if (ch != null) {
                    AbstractEpollUnsafe unsafe = (AbstractEpollUnsafe) ch.unsafe();
                    if (write && ch.isOpen()) {
                        // force flush of data as the epoll is writable again
                        unsafe.epollOutReady();
                    }
                    if (read && ch.isOpen()) {
                        // Something is ready to read, so consume it now
                        unsafe.epollInReady();
                    }
                    if (close && ch.isOpen()) {
                        unsafe.epollRdHupReady();
                    }
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.