Hacker News new | ask | show | jobs
by pottertheotter 1909 days ago
The assumption is that the packet is something like header + file (I don't know if header is the right terminology). You don't know how many bytes the header is, so you increment the header length until the remaining bytes are recognized as a file.