OSF DCE Application Development Guide--Core Components

Writing Internationalized RPC Applications
if (smir_true && cmir_true)
{
/* RMIR model works */
stag = client->codesets[0].c_set;
drtag = server->codesets[0].c_set;
stag_max_bytes
= client->codesets[0].c_max_bytes;
}
else if (smir_true)
{
/* SMIR model */
stag = client->codesets[0].c_set;
drtag = client->codesets[0].c_set;
stag_max_bytes
= client->codesets[0].c_max_bytes;
}
else
{
/* CMIR model */
stag = server->codesets[0].c_set;
drtag = server->codesets[0].c_set;
stag_max_bytes
= server->codesets[0].c_max_bytes;
}
/*
* set tags value to the binding
*/
rpc_cs_binding_set_tags (
&bind_handle,
stag,
drtag,
stag_max_bytes,
&status );
CHECK_STATUS(FALSE, "rpc_cs_binding_set_tags",
status, rpc_s_ok);
if (status != rpc_s_ok)
{
rpc_ns_mgmt_free_codesets(&server, &status);
CHECK_STATUS(FALSE, "rpc_ns_mgmt_free_codesets",
status, rpc_s_ok);
rpc_ns_mgmt_free_codesets(&client, &status);
CHECK_STATUS(TRUE, "rpc_ns_mgmt_free_codesets",
status, rpc_s_ok);
}
}
else
{
124245 Tandem Computers Incorporated 15 35