Exemplo n.º 1
0
        } // InitRun

        private void OnSectionReceived()
        {
            var sectionReceived = SectionReceived;

            if (sectionReceived == null)
            {
                return;
            }

            var args = new SectionReceivedEventArgs
            {
                Header        = Header.Clone(),
                BytesReceived = ReceivedBytes,
                Payload       = new byte[Header.PayloadSize]
            };

            Array.Copy(DatagramData, Header.PayloadOffset, args.Payload, 0, Header.PayloadSize);
            if (Header.PrivateHeaderLength > 0)
            {
                args.PrivateHeader = new byte[Header.PrivateHeaderLength];
                Array.Copy(DatagramData, Header.PrivateHeaderOffset, args.PrivateHeader, 0, Header.PrivateHeaderLength);
            } // if

            SectionReceived?.Invoke(this, args);
        } // OnSectionReceived
Exemplo n.º 2
0
        } // Clean

        private void OnSectionReceived()
        {
            DvbStpSimpleClient.SectionReceivedEventArgs e;

            e = new DvbStpSimpleClient.SectionReceivedEventArgs()
            {
                DatagramCount      = DatagramCount,
                PayloadId          = Header.PayloadId,
                SegmentIdNetworkLo = Header.SegmentIdNetworkLo,
                SegmentIdNetworkHi = Header.SegmentIdNetworkHi,
                SegmentVersion     = Header.SegmentVersion
            };

            SectionReceived?.Invoke(this, e);
        } // OnSectionReceived
Exemplo n.º 3
0
        } // Versions_SegmentStarted

        private void Versions_SectionReceived(object sender, SectionReceivedEventArgs e)
        {
            SectionReceived?.Invoke(this, e);
        } // Versions_SectionReceived
Exemplo n.º 4
0
        } // OnDownloadCompleted

        protected virtual void OnSectionReceived(object sender, DvbStpSimpleClient.SectionReceivedEventArgs e)
        {
            SectionReceived?.Invoke(sender, e);
        } // OnSectionReceived