OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
/* The binding handle is now fully bound. Our request for the ob- */
/* ject UUID was really only a pretext for doing the namespace */
/* lookup and getting the binding handle completed with a server */
/* endpoint. The object UUID is not used for routing within the */
/* server. So we can now clear out any UUID set by id_hint and re- */
/* place it with any type manager UUID returned from the server... */
fprintf(stdout, "sample_client: Fully bound to object.0);
/* fprintf(stdout, "sample_client: Calling rpc_binding_set_object()...0);
rpc_binding_set_object(
(rpc_binding_handle_t)*binding_h,
mgr_type_uuid,
status);
if (*status != error_status_ok)
{
print_error("rpc_binding_set_object()", *status);
return;
}
*/
fprintf(stdout, "sample_client: Calling rpc_string_free()...0);
rpc_string_free(&resolved_name, status);
if (*status != error_status_ok)
{
print_error("rpc_string_free()", *status);
return;
}
}
/******
*
* print_error-- Client version. Prints text associated with bad status code.
*
*
*
******/
void
print_error(char *caller, /* Routine that received the error. */
error_status_t status) /* The status we want to print the message for. */
{
dce_error_string_t error_string;
int print_status;
dce_error_inq_text(status, error_string, &print_status);
fprintf(stderr," Client: %s: %s0, caller, error_string);
}
A− 96 Tandem Computers Incorporated 124246