DCE for the HP e3000 (B3821-90003)

Chapter 7 65
Programming with RPC 1.2.1 on MPE/iX
* associate with the third parameter. This application does not use
* type UUIDs (an advanced feature). The third parameter is the manager
* entry point vector, the array of functions used as implementations
* for incoming remote procedure calls. A value of NULL indicates that
* the runtime should use the default manager EPV generated by the IDL
* compiler. The fourth parameter is the DCE error status.
*/
rpc_server_register_if(sleeper_v1_0_s_ifspec, /* generated interface spec */
NULL, /* No type UUIDs */
NULL, /* Use supplied epv */
&st); /* error status for this call */
if (st != rpc_s_ok) {
dce_error_inq_text(st, dce_err_string, (int *)&_ignore);
PRINT_FUNC(PRINT_HANDLE,"Cannot register interface with runtime: %s\n",
dce_err_string);
exit(1);
}
/* rpc_server_inq_bindings() --
*
* Inquire from the RPC runtime about the bindings that were created in
* the registration call above.
*
* The first parameter is the address of a binding vector data type.
* Memory for a new binding vector will be allocated and returned. The
* application must later free this memory. The second parameter is the
* DCE error status.
*
* The binding information is required for registration with the
* endpoint mapper below. We print it out simply for debugging
* purposes.
*/
rpc_server_inq_bindings(&bvec, /* runtime's binding vector */
&st); /* error status for this call */
if (st != rpc_s_ok) {
dce_error_inq_text(st, dce_err_string, (int *)&_ignore);
PRINT_FUNC(PRINT_HANDLE, "Cannot get bindings: %s\n", dce_err_string);
exit(1);