1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Andrew Bartlett
09b2f30dfa r15400: Move the TLS code behind the socket interface.
This reduces caller complexity, because the TLS code is now called
just like any other socket.  (A new socket context is returned by the
tls_init_server and tls_init_client routines).

When TLS is not available, the original socket is returned.

Andrew Bartlett
2007-10-10 14:05:32 -05:00
Andrew Tridgell
6a47cd65a8 r11713: separate out the setting of the fde in the packet context from the
enabling of packet serialisation
2007-10-10 13:46:17 -05:00
Andrew Tridgell
ba7864b07e r11636: a bit neater solution to the nt_cancel problem 2007-10-10 13:46:03 -05:00
Andrew Tridgell
f869fd674e r11627: give the caller much more control over the stream to packet process,
allowing it to specify the initial read size (thus preventing
over-reading) and to stop the recv process when needed. This is used
by the dcerpc socket code, which relies on not getting packets when it
isn't ready for them
2007-10-10 13:46:01 -05:00
Andrew Tridgell
b4dbe55105 r11618: added a generic '32 bit length prefix' full packet helper to the packet code 2007-10-10 13:45:59 -05:00
Andrew Tridgell
f98d499b2e r11605: added handling of the send queue to the generic packet handling code 2007-10-10 13:45:57 -05:00
Andrew Tridgell
d860eb7956 r11602: added packet_set_serialise() to allow the generic packet layer to
handle optional request serialisation (this is something that is
commonly needed on stream connections)
2007-10-10 13:45:57 -05:00
Andrew Tridgell
e6c47b954a 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.
2007-10-10 13:45:55 -05:00