Class HdlcFrame


  • public class HdlcFrame
    extends java.lang.Object
    • Method Detail

      • newInformationFrame

        public static HdlcFrame newInformationFrame​(HdlcAddressPair addressPair,
                                                    int sendSequence,
                                                    int receiveSequence,
                                                    byte[] data,
                                                    boolean segmented,
                                                    boolean addLcc)
      • newReceiveReadyFrame

        public static HdlcFrame newReceiveReadyFrame​(HdlcAddressPair addressPair,
                                                     int receiveSeq,
                                                     boolean poll)
      • newUnnumberedInformationFrame

        public static HdlcFrame newUnnumberedInformationFrame​(HdlcAddressPair addressPair,
                                                              byte[] information,
                                                              boolean poll)
      • newReceiveNotReadyFrame

        public static HdlcFrame newReceiveNotReadyFrame​(HdlcAddressPair addressPair,
                                                        int receiveSeq,
                                                        boolean poll)
      • newUnnumberedAcknowledgeFrame

        public static HdlcFrame newUnnumberedAcknowledgeFrame​(HdlcAddressPair addressPair,
                                                              HdlcParameters negotiationParams,
                                                              boolean poll)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • newDisconnectModeFrame

        public static HdlcFrame newDisconnectModeFrame​(HdlcAddressPair addressPair,
                                                       byte[] information,
                                                       boolean poll)
      • getDestinationAddress

        public HdlcAddress getDestinationAddress()
      • getSourceAddress

        public HdlcAddress getSourceAddress()
      • getFrameType

        public FrameType getFrameType()
      • getInformationField

        public byte[] getInformationField()
      • getInformationFieldWithoutLlc

        public byte[] getInformationFieldWithoutLlc()
      • getLength

        public int getLength()
      • getSendSequence

        public int getSendSequence()
      • getReceiveSequence

        public int getReceiveSequence()
      • isSegmented

        public boolean isSegmented()
      • encode

        public byte[] encode()
      • encodeWithoutFlags

        public byte[] encodeWithoutFlags()