Esempio n. 1
0
            private void WritePDU(bool last)
            {
                if (_pdu.PDVs.Count == 0 || ((CurrentPduSize() + 6) < _max && GetBufferLength() > 0))
                {
                    CreatePDV();
                }
                if (_pdu.PDVs.Count > 0)
                {
                    if (last)
                    {
                        _pdu.PDVs[_pdu.PDVs.Count - 1].IsLastFragment = true;
                    }

                    _service.SendPDU(_pdu);

                    _pdu = new PDataTF();
                }
            }
Esempio n. 2
0
            private void WritePDU(bool last)
            {
                if (_length > 0)
                {
                    CreatePDV(last);
                }

                if (_pdu.PDVs.Count > 0)
                {
                    if (last)
                    {
                        _pdu.PDVs[_pdu.PDVs.Count - 1].IsLastFragment = true;
                    }

                    _service.SendPDU(_pdu);

                    _pdu = new PDataTF();
                }
            }