NewPacketSource creates a packet data source.
(source PacketDataSource, decoder Decoder)
| 789 | |
| 790 | // NewPacketSource creates a packet data source. |
| 791 | func NewPacketSource(source PacketDataSource, decoder Decoder) *PacketSource { |
| 792 | return &PacketSource{ |
| 793 | source: source, |
| 794 | decoder: decoder, |
| 795 | } |
| 796 | } |
| 797 | |
| 798 | // NextPacket returns the next decoded packet from the PacketSource. On error, |
| 799 | // it returns a nil packet and a non-nil error. |
no outgoing calls
searching dependent graphs…