PreviousNext

Exporting to CDS

To advertise itself to clients, the server calls rpc_ns_binding_export( ). The server entry for the namespace is obtained from the argument input when the server is invoked (argv[1]).

/*

* Export ourselves into the CDS namespace.

*/

rpc_ns_binding_export(

rpc_c_ns_syntax_default, (unsigned_char_p_t) argv[1],

greetif_v1_0_s_ifspec, binding_vector, NULL, &status);

ERROR_CHECK(status, "Can't export into CDS namespace");