Make libsmbclient more fail-safe
jra at samba.org
Thu Nov 29 11:15:02 GMT 2001
On Thu, Nov 29, 2001 at 08:52:17PM +1100, Andrew Bartlett wrote:
> But a 'my connection went away and you asked me to do somthing' callback
> mechinism would make sense, would it not?
Yes. It's call an "error code" from the next libsmb call :-).
Adding such a callback is not useful. The application has
to keep the state. Calling back into the app. from libsmb
client just doesn't seem worth the effort here.
Look at a standard (ONC) RPC library. There are no callbacks
for connection failure, just error codes from the calls.
As the library has to punt anything useful back to the
application anyway, callbacks just complicate the client
code for no real gain (IMHO).
More information about the samba-technical