Esempio n. 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="byteArraySegment">
        /// A <see cref="ByteArraySegment" />
        /// </param>
        public BlockAcknowledgmentRequestFrame(ByteArraySegment byteArraySegment)
        {
            Header = new ByteArraySegment(byteArraySegment);

            FrameControl                    = new FrameControlField(FrameControlBytes);
            Duration                        = new DurationField(DurationBytes);
            ReceiverAddress                 = GetAddress(0);
            TransmitterAddress              = GetAddress(1);
            BlockAcknowledgmentControl      = new BlockAcknowledgmentControlField(BlockAckRequestControlBytes);
            BlockAckStartingSequenceControl = BlockAckStartingSequenceControlBytes;

            Header.Length = FrameSize;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BlockAcknowledgmentRequestFrame" /> class.
        /// </summary>
        /// <param name='transmitterAddress'>
        /// Transmitter address.
        /// </param>
        /// <param name='receiverAddress'>
        /// Receiver address.
        /// </param>
        public BlockAcknowledgmentRequestFrame
        (
            PhysicalAddress transmitterAddress,
            PhysicalAddress receiverAddress)
        {
            FrameControl               = new FrameControlField();
            Duration                   = new DurationField();
            ReceiverAddress            = receiverAddress;
            TransmitterAddress         = transmitterAddress;
            BlockAcknowledgmentControl = new BlockAcknowledgmentControlField();

            FrameControl.SubType = FrameControlField.FrameSubTypes.ControlBlockAcknowledgmentRequest;
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BlockAcknowledgmentFrame" /> class.
        /// </summary>
        /// <param name='transmitterAddress'>
        /// Transmitter address.
        /// </param>
        /// <param name='receiverAddress'>
        /// Receiver address.
        /// </param>
        /// <param name='blockAckBitmap'>
        /// The Block ack bitmap signalling the receive status of the MSDUs.
        /// </param>
        public BlockAcknowledgmentFrame
        (
            PhysicalAddress transmitterAddress,
            PhysicalAddress receiverAddress,
            byte[] blockAckBitmap)
        {
            FrameControl               = new FrameControlField();
            Duration                   = new DurationField();
            ReceiverAddress            = receiverAddress;
            TransmitterAddress         = transmitterAddress;
            BlockAcknowledgmentControl = new BlockAcknowledgmentControlField();
            BlockAckBitmap             = blockAckBitmap;

            FrameControl.SubType = FrameControlField.FrameSubTypes.ControlBlockAcknowledgment;
        }