rpc_ns_binding_inq_entry_name(3rpc)Returns the name of an entry in the name service database from which the server binding handle came Used by client applications. Synopsis #include <dce/rpc.h> void rpc_ns_binding_inq_entry_name( rpc_binding_handle_t binding, unsigned32 entry_name_syntax, unsigned_char_t **entry_name, unsigned32 *status); Parameters Input
binding
entry_name_syntax To use the syntax specified in the RPC_DEFAULT_ENTRY_SYNTAX environment variable, provide the value rpc_c_ns_syntax_ default. Output
entry_name Specify NULL to prevent the routine from returning this parameter. When you specify this value, the client does not need to call rpc_string_free( ).
status
Description The RPC runtime allocates memory for the string returned in the entry_name parameter. Your application calls rpc_string_free( ) to deallocate that memory. An entry name is associated only with binding handles returned from the rpc_ns_binding_import_next( ), rpc_ns_binding_lookup_next( ), and rpc_ns_binding_select( ) routines. If the binding handle specified in the binding parameter is not returned from an entry in the name service database (for example, the binding handle is created by calling rpc_binding_from_string_binding( )), this routine returns the rpc_s_no_entry_name status code.
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_incomplete_name
rpc_s_invalid_binding
rpc_s_invalid_name_syntax
rpc_s_no_entry_name
rpc_s_unsupported_name_syntax
rpc_s_wrong_kind_of_binding
Related Information rpc_ns_binding_import_next(3rpc) rpc_ns_binding_lookup_next(3rpc)
|