DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Designing SCOadmin object service agents

Binding class definitions to the Object API

After defining the object class with the definition tables, the OSAs must bind the definitions to Server API, so it can call the appropriate execution procedures correctly, and do basic type checking on passed attributes and data.

Binding also provides the writer of the OSA with the ability to hand off a handle to the Server API. This handle will be returned to any execution procedure or request processor that belongs to the current class when it is called. By use of this handle, the OSA writer can store class-specific database information when multiple classes all use the same execution procedures.

Bind class definitions with the function OFBinding, which causes Server API to load the class definition tables. The Tcl interface is described in OFBinding(TCL_ADM), and the C/C++ interface in OFBinding(S_ADM). When calling the binding function, the OSA can specify whether it will be using the default request processor (faster and built into the Server API) or one that the OSA will provide.

For more information, see ``Example request processors''.


Next topic: Defining execution procedures
Previous topic: Subordinates definition table (SDT)

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003