Esempio n. 1
0
        protected virtual void OnDataRead(pcaprec_hdr_t arg, USBPCAP_BUFFER_PACKET_HEADER packet, byte[] data)
        {
            EventHandler <DataEventArgs> handler = DataRead;

            if (handler != null)
            {
                handler(this, new DataEventArgs(arg, packet, data));
            }
        }
Esempio n. 2
0
 public DataEventArgs(pcaprec_hdr_t record, USBPCAP_BUFFER_PACKET_HEADER packetHeader, byte[] data)
 {
     _record = record;
     _header = packetHeader;
     _data   = data;
 }