Package org.jnetstream.packet

Examples of org.jnetstream.packet.Header


    final int index = protocol.getIndex();

    if (index == ProtocolInfo.NO_BIT_INDEX) {
      for (int i = 0; i < refs.length; i++) {
        final Header rt = refs[i];
        if (rt == protocol) {
          return true;
        }
      }
View Full Code Here


    if (index != ProtocolInfo.NO_BIT_INDEX) {
      return getHeader(index);
    }

    for (int i = 0; i < refs.length; i++) {
      final Header rt = refs[i];
      if (rt == protocol) {
        return rt;
      }

    }
View Full Code Here

      return getBuffer();
    }

    BitBuffer b = getBuffer();

    Header last = headers.getHeader(headers.size() - 1);
    int p = b.position() + last.getOffset() + last.getLength();
    p = (p > b.limit() ? b.limit() : p);

    // Now position the buffer
    b.position(p);
View Full Code Here

TOP

Related Classes of org.jnetstream.packet.Header

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.