OSF DCE Application Development Guide--Introduction and Style Guide
OSF DCE Application Development Guide—Introduction and Style Guide
if (status != rpc_s_ok)
{
print_error("rpc_mgmt_stop_server_listening()", status);
exit(1);
}
fprintf(stdout, "sample_client: Server successfully killed.0);
}
/* Second alternative: Do remote operations... */
else
{
/* This is a local call... */
fprintf(stdout,
"sample_client: Remote call option enacted...0);
fprintf(stdout,
"sample_client: Preparing to bind to object %s0,
(char *)objectname_vector.name[0]);
fprintf(stdout,
"sample_client: Calling bind_to_object()...0);
bind_to_object(
(unsigned_char_t *)objectname_vector.name[0],
/* ...Name of object to bind to. */
NULL, /* Interface spec "hint". */
NULL, /* Object UUID "hint". */
&object_handle, /* Here’s where binding will be. */
&object_uuid, /* Here’s where object UUID will be. */
&mgr_uuid, /* Type manager UUID will be here. */
&entry_name, /* Full entry name returned here. */
&object_name, /* "Unresolved", i.e. object name. */
&status);
if (status != error_status_ok)
{
fprintf(stdout, "Can’t bind to object %s0,
objectname_vector.name[0]);
return;
}
/* Display the binding, just for fun... */
fprintf(stdout, "View object %s:0,
(char *)objectname_vector.name[0]);
fprintf(stdout, " Via junction: %s Object name: %s0,
entry_name, object_name);
A− 84 Tandem Computers Incorporated 124246










