Examples of IOState


Examples of org.eclipse.jetty.websocket.common.io.IOState

        // TODO Should test for no more frames. success if connection closed.
    }

    public CloseState getCloseState()
    {
        IOState ios = client.getIOState();

        if (ios.wasLocalCloseInitiated())
        {
            return CloseState.LOCAL_INITIATED;
        }
        else if (ios.wasRemoteCloseInitiated())
        {
            return CloseState.REMOTE_INITIATED;
        }
        else
        {
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.io.IOState

        this.bufferPool = new MappedByteBufferPool(8192);
        this.generator = new Generator(policy,bufferPool);
        this.parser = new Parser(policy,bufferPool);

        this.extensionFactory = new WebSocketExtensionFactory(policy,bufferPool);
        this.ioState = new IOState();
        this.ioState.addListener(this);
    }
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.io.IOState

    private static final Logger LOG = Log.getLogger(DummyConnection.class);
    private IOState iostate;

    public DummyConnection()
    {
        this.iostate = new IOState();
    }
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.io.IOState

{
    private IOState iostate;

    public DummyConnection()
    {
        this.iostate = new IOState();
    }
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.io.IOState

                    catch (Throwable t)
                    {
                        LOG.ignore(t);
                    }
                }
                IOState ioState = this.connection.getIOState();
                CloseInfo close = ioState.getCloseInfo();
                // confirmed close of local endpoint
                notifyClose(close.getStatusCode(),close.getReason());
                break;
            case OPEN:
                // notify session listeners
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.io.IOState

                        LOG.ignore(t);
                    }
                }
                break;
            case CLOSED:
                IOState ioState = this.connection.getIOState();
                // The session only cares about abnormal close, as we need to notify
                // the endpoint of this close scenario.
                if (ioState.wasAbnormalClose())
                {
                    CloseInfo close = ioState.getCloseInfo();
                    LOG.debug("Detected abnormal close: {}", close);
                    // notify local endpoint
                    notifyClose(close.getStatusCode(), close.getReason());
                }
                break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.