vaguue / over-the-wire

Network inspection library for Node
https://vaguue.github.io/over-the-wire
GNU General Public License v3.0
60 stars 2 forks source link

Consider using `unshift` in either struct-compile or over-the-wire during pcap parsing #9

Open vaguue opened 3 weeks ago

vaguue commented 3 weeks ago

https://nodejs.org/api/stream.html#readableunshiftchunk-encoding Great example, but the problem is for small pcap files the stream is gonna end right away, which can bring the same code as of now.

vaguue commented 3 weeks ago

or maybe use chevrotain