LWN.net Logo

A linux.conf.au wrapup

A linux.conf.au wrapup

Posted May 1, 2005 8:53 UTC (Sun) by ab (subscriber, #788)
In reply to: A linux.conf.au wrapup by njhurst
Parent article: A linux.conf.au wrapup

Composite functions is a way in Samba 4 to basically construct your application's logic out of lego blocks: i.e., instead of doing everything by yourself, you just call a composite function for logon, then for reading file, then you process that file. Behind the scenes, logon composite function does a number of calls (all asynchronosly), establish SMB session, authenticates, etc. The read file composite function actually connects to the tree, opens a file, reads its content into a memory.

All this is seen as a few-liner but internally it is quite a big execution list for SMB and user is actually free of taking care of the steps she doesn't really implementing.

Composite functions are built on top of Samba4's asynchronous infrastructure, hierarchical allocation (talloc) and what is usually known as continuations -- async functions which are called when particular stage of processing is done so that state machine describing a composite function logic is making a change in its state.


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.