Package com.sun.nio.sctp

Examples of com.sun.nio.sctp.MessageInfo.bytes()


      // happens a lot, some sort of keep-alive?
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP read-event but no message" );
      }
      return;
    } else if (info.bytes()==-1) {
      getSIPStack().getStackLogger().logWarning( "SCTP peer closed, closing too..." );
      this.close();
      return;
    } else if ( !info.isComplete() ) {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
View Full Code Here


      getSIPStack().getStackLogger().logWarning( "SCTP peer closed, closing too..." );
      this.close();
      return;
    } else if ( !info.isComplete() ) {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP incomplete message; bytes=" + info.bytes() );
      }
      return;
    } else {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP message now complete; bytes=" + info.bytes() );
View Full Code Here

        getSIPStack().getStackLogger().logDebug( "SCTP incomplete message; bytes=" + info.bytes() );
      }
      return;
    } else {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP message now complete; bytes=" + info.bytes() );
      }     
    }
   
    // Assume it is 1 full message, not multiple messages
    byte[] msg = new byte[ rxBuffer.position() ];
View Full Code Here

        logger.debug(String.format(" messageInfo is null for Association=%s", this.name));
      }
      return null;
    }

    int len = messageInfo.bytes();
    if (len == -1) {
      logger.error(String.format("Rx -1 while trying to read from underlying socket for Association=%s ",
          this.name));
      this.close();
      this.scheduleConnect();
View Full Code Here

      // happens a lot, some sort of keep-alive?
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP read-event but no message" );
      }
      return;
    } else if (info.bytes()==-1) {
      getSIPStack().getStackLogger().logWarning( "SCTP peer closed, closing too..." );
      this.close();
      return;
    } else if ( !info.isComplete() ) {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
View Full Code Here

      getSIPStack().getStackLogger().logWarning( "SCTP peer closed, closing too..." );
      this.close();
      return;
    } else if ( !info.isComplete() ) {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP incomplete message; bytes=" + info.bytes() );
      }
      return;
    } else {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP message now complete; bytes=" + info.bytes() );
View Full Code Here

        getSIPStack().getStackLogger().logDebug( "SCTP incomplete message; bytes=" + info.bytes() );
      }
      return;
    } else {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP message now complete; bytes=" + info.bytes() );
      }     
    }
   
    // Assume it is 1 full message, not multiple messages
    byte[] msg = new byte[ rxBuffer.position() ];
View Full Code Here

      // happens a lot, some sort of keep-alive?
      if ( getSIPStack().getStackLogger().isLoggingEnabled( ServerLogger.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP read-event but no message" );
      }
      return;
    } else if (info.bytes()==-1) {
      getSIPStack().getStackLogger().logWarning( "SCTP peer closed, closing too..." );
      this.close();
      return;
    } else if ( !info.isComplete() ) {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( ServerLogger.TRACE_DEBUG ) ) {
View Full Code Here

      getSIPStack().getStackLogger().logWarning( "SCTP peer closed, closing too..." );
      this.close();
      return;
    } else if ( !info.isComplete() ) {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( ServerLogger.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP incomplete message; bytes=" + info.bytes() );
      }
      return;
    } else {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( ServerLogger.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP message now complete; bytes=" + info.bytes() );
View Full Code Here

        getSIPStack().getStackLogger().logDebug( "SCTP incomplete message; bytes=" + info.bytes() );
      }
      return;
    } else {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( ServerLogger.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP message now complete; bytes=" + info.bytes() );
      }     
    }
   
    // Assume it is 1 full message, not multiple messages
    byte[] msg = new byte[ rxBuffer.position() ];
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.