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)
commit3e494442de5eff6d0619c793eef139c15efe0657
treecb3dac56d69033ea14d7917d5511bf0cc052ca44
parent735e98759c0f860727c24c4cdb14235abdeb8879
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
(This used to be commit 9d75ea577b407ccab59196760d376831062a3ab5)
examples/libsmbclient/testread.c