Add async cli_pull support
commit584d904c4b149baf6857892c53d84e28a7a685ea
authorVolker Lendecke <vl@samba.org>
Thu, 28 Feb 2008 14:21:33 +0000 (28 15:21 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 7 Mar 2008 08:54:42 +0000 (7 09:54 +0100)
treea8ec5c1cd020080d7a348a317acc7b62516b975e
parentc24fb2e196f294602617a370f359ab8e492a2ba2
Add async cli_pull support

This is the big (and potentially controversial) one. It took a phone call to
explain to metze what is going on inside cli_pull_read_done, but I would really
like everybody to understand this function. It is a very good and reasonably
complex example of async programming. If we want more asynchronism in s3, this
is what we will have to deal with :-)

Make use of it in the smbclient "get" command.

Volker
(cherry picked from commit 76f9b360ee1d973630d82d401eeddce858189301)
source/client/client.c
source/libsmb/clireadwrite.c