Package org.jnetstream.protocol

Examples of org.jnetstream.protocol.ProtocolEntry


      throw new IllegalStateException(
          "Trying to use an unopen Pcap capture session");
    }

    final int dlt = pcaps[index].datalink(); // Get DLT type
    final ProtocolEntry id =
        ProtocolRegistry.getProtocolEntry(PcapDLT.asConst(dlt));

    /*
     * The handler that will receive packets from Pcap and create LivePackets
     * out of the received data. Then through AbstractLiveCapture.dispatch
View Full Code Here


   *
   * @see org.jnetstream.packet.FastHeaderCache#contains(java.lang.Class)
   */
  public boolean contains(Class<? extends Header> c) {

    final ProtocolEntry protocol = ProtocolRegistry.lookup(c);

    if (protocol == null) {
      return false;
    }

    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) {
View Full Code Here

   *
   * @see org.jnetstream.packet.FastHeaderCache#getHeader(java.lang.Class)
   */
  public Header getHeader(Class<? extends Header> c) {

    final ProtocolEntry protocol = ProtocolRegistry.lookup(c);

    if (protocol == null) {
      return null;
    }

View Full Code Here

TOP

Related Classes of org.jnetstream.protocol.ProtocolEntry

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.