Package org.java_websocket.drafts.Draft

Examples of org.java_websocket.drafts.Draft.HandshakeState


      socketBuffer = tmpHandshakeBytes;
    }
    socketBuffer.mark();
    try {
      if( draft == null ) {
        HandshakeState isflashedgecase = isFlashEdgeCase( socketBuffer );
        if( isflashedgecase == HandshakeState.MATCHED ) {
          try {
            write( ByteBuffer.wrap( Charsetfunctions.utf8Bytes( wsl.getFlashPolicy( this ) ) ) );
            close( CloseFrame.FLASHPOLICY, "" );
          } catch ( InvalidDataException e ) {
            close( CloseFrame.ABNORMAL_CLOSE, "remote peer closed connection before flashpolicy could be transmitted", true );
          }
          return false;
        }
      }
      HandshakeState handshakestate = null;

      try {
        if( role == Role.SERVER ) {
          if( draft == null ) {
            for( Draft d : knownDrafts ) {
View Full Code Here

TOP

Related Classes of org.java_websocket.drafts.Draft.HandshakeState

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.