r11595: added a helper layer to parse streams into individual packets. This is
commite6c47b954a6f09c53ea419800ce873295fcd0be9
authorAndrew Tridgell <tridge@samba.org>
Wed, 9 Nov 2005 08:11:50 +0000 (9 08:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:45:55 +0000 (10 13:45 -0500)
treeda359b849ebd652310aac2b15e91f5bd7864a8aa
parentcd567bcb24125827c746c1c0902631b0e7c2cea5
r11595: added a helper layer to parse streams into individual packets. This is
something that Andrew Bartlett has been asking for for a while, and
when I started having to re-invent this packet parsing code yet again
for SMB2 I decided it was time to do it generically

you use it by providing a "is this a full packet yet?" helper function
to the packet_*() functions, which then handle all the logic of
partial packet buffering.

This also goes to great lengths to operate efficiently, minimising the
number of recv system calls.
source/lib/stream/config.mk [new file with mode: 0644]
source/lib/stream/packet.c [new file with mode: 0644]
source/lib/stream/packet.h [new file with mode: 0644]