r11595: added a helper layer to parse streams into individual packets. This is
authorAndrew Tridgell <tridge@samba.org>
Wed, 9 Nov 2005 08:11:50 +0000 (08:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:45:55 +0000 (13:45 -0500)
commit8752e38c05779b6ff72bb0bf49940ef6afe55184
tree407d3443b924213821979611e5761ba76f7bc8c7
parentf613e18d1e587782e94ae614a88ee1df4aa0503e
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.
(This used to be commit e6c47b954a6f09c53ea419800ce873295fcd0be9)
source4/lib/stream/config.mk [new file with mode: 0644]
source4/lib/stream/packet.c [new file with mode: 0644]
source4/lib/stream/packet.h [new file with mode: 0644]