rpc_cs_binding_set_tags(3rpc)Places code set tags into a server binding handle Used by client applications. Synopsis #include <dce/rpc.h> void rpc_cs_binding_set_tags( rpc_binding_handle_t *binding, unsigned32 sending_tag, unsigned32 desired_receiving_tag, unsigned16 sending_tag_max_bytes, error_status_t *status); Parameters Input/Output
binding Input
sending_tag
desired_receiving_tag
sending_tag_max_bytes Output
status
Description Client applications use the rpc_cs_binding_set_tags( ) routine to add code sets tag information to the binding handle of a compatible server. The tag information specified in the routine is usually obtained from a character and code sets evaluation routine (which is typically a user-written routine). The sending_tag value identifies the code set encoding that the client is using to send international character data to the server. The desired_receiving_tag value indicates to the server the code set that the client prefers the server to use when sending return international character data. The sending_tag_max_bytes value is the number of bytes the sending code set uses to encode one character. Client applications that use the rpc_cs_eval_with_universal( ) or rpc_cs_eval_without_universal( ) routines do not need to call this routine because these routines set tag information in the server binding handle as part of their operation. Application developers who are writing their own character and code sets evaluation routines need to include code that sets tags in a server binding handle. The rpc_cs_binding_set_tags( ) routine provides this function and can be used in user-written evaluation routines, or alone if the application does not need to perform evaluation. In this case, the routine provides a short cut for application programmers whose applications do not need to evaluate for character and code set compatibility.
Permissions Required
Return Values Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. rpc_s_ok rpc_s_no_memory
Related Information rpc_cs_eval_without_universal(3rpc)
|