Modify testread example to loop using same context.
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Wed, 16 Jan 2008 14:41:11 +0000 (14:41 +0000)
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>
Wed, 16 Jan 2008 14:41:11 +0000 (14:41 +0000)
commit9d75ea577b407ccab59196760d376831062a3ab5
treeefd1d8dfe1aed1221dac36c4d15c9178873f13d8
parent296a6783fbc03460e87ac4136a0a9e6d2743b2ff
Modify testread example to loop using same context.

There's been a problem seen where open/read/close a number of times causes
open failures eventually.  This program has been modified to create the
context once and then loop requesting file names to open/read/close.

This program also demonstrates the current error in cli_read() where it
returns an error instead of length 0 upon end of file.

Derrell
examples/libsmbclient/testread.c