Package org.activeio

Examples of org.activeio.AsynchChannelListener


    final private class ProtocolInspectingAsynchChannel extends FilterAsynchChannel {
        private Packet buffer;

        public ProtocolInspectingAsynchChannel(AsynchChannel next) throws IOException {
            super(next);
            setAsynchChannelListener(new AsynchChannelListener() {
                public void onPacket(Packet packet) {
                    if (buffer == null) {
                        buffer = packet;
                    } else {
                        buffer = AppendedPacket.join(buffer, packet);
View Full Code Here

TOP

Related Classes of org.activeio.AsynchChannelListener

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.