DCE for the HP e3000 (B3821-90003)

64 Chapter7
Programming with RPC 1.2.1 on MPE/iX
fprintf(stderr, "Unable to initialize tracing interface!\n");
}
}
#endif /* TRACING */
/* rpc_server_use_protseq() --
*
* Specify the protocol sequences that the RPC runtime should use when
* creating endpoints. The first parameter is a string representation
* of a protocol sequence to use. The second parameter is the maximum
* number of concurrent remote procedure call requests that the server
* will accept. In the first version of DCE, the second parameter is
* always replaced by a default value. The third parameter is the DCE
* return status.
*
* This server uses only the UDP/IP protocol sequence for efficiency
* reasons: the UDP transport is more efficient for procedures that are
* idempotent and expected to return only small amounts of data. The
* reason why we don't simply listen on all protocols and let the client
* choose is because it consumes more system resources to listen on
* multiple protocol sequences.
*/
rpc_server_use_protseq((unsigned char *)"ip", /* prot seq to listen on */
rpc_c_protseq_max_calls_default,
&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 use protocol sequence ip: %s\n",
dce_err_string);
exit(1);
}
/* rpc_server_register_if() --
*
* Register the interface definition and manager entry point vector with
* the RPC runtime. The first parameter is the interface specification
* generated by the IDL compiler; it is declared in the "sleeper.h" file
* generated by idl. The second parameter is the manager type UUID to