svn commit: samba r11595 - in branches/SAMBA_4_0/source/lib: .
stream
tridge at samba.org
tridge at samba.org
Wed Nov 9 08:11:51 GMT 2005
Author: tridge
Date: 2005-11-09 08:11:50 +0000 (Wed, 09 Nov 2005)
New Revision: 11595
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11595
Log:
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.
Added:
branches/SAMBA_4_0/source/lib/stream/
branches/SAMBA_4_0/source/lib/stream/config.mk
branches/SAMBA_4_0/source/lib/stream/packet.c
branches/SAMBA_4_0/source/lib/stream/packet.h
Changeset:
Sorry, the patch is too large (385 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11595
More information about the samba-cvs
mailing list