OSF DCE Application Development Guide--Core Components
Interface Definition Language
rpc_ep_register( /* register addresses in endpoint map database */
string_tree_v0_0_s_ifspec, /* interface specification */
binding_vector, /* (string_tree.h) the set of binding handles */
NULL,
"",
&status
);
check_error(status, "Can’t add address to the endpoint database\n");
rpc_ns_binding_export( /* establish namespace entry */
rpc_c_ns_syntax_dce, /* syntax of the entry name (rpc.h) */
"string_tree", /* entry name in directory service */
&string_tree_v0_0_s_ifspec, /* interface specification */
binding_vector, /* (string_tree.h) the set of binding handles */
NULL,
&status
);
check_error(status, "Can’t export to directory service\n");
rpc_binding_vector_free( /* free set of binding handles */
&binding_vector,
status
);
check_error(status, "Can’t free binding handles and vector\n");
rpc_server_listen( /* listen for remote calls */
rpc_c_listen_max_calls_default,
/* concurrent calls server executes (rpc.h) */
&status
);
check_error(status, "rpc listen failed\n");
}
The STRING_TREE.OUTPUT Example
Original Tree:
Root Node
Left subtree
Child of left subtree
Right subtree
Pruned Tree:
Root Node
Right subtree
Pruned subtree:
Left subtree
Child of left subtree
124245 Tandem Computers Incorporated 17− 57