rpc_ns_binding_lookup_begin(3rpc)Creates a lookup context for an interface and an object in the name service database Used by client applications. Synopsis #include <dce/rpc.h> void rpc_ns_binding_lookup_begin( unsigned32 entry_name_syntax, unsigned_char_t *entry_name, rpc_if_handle_t if_handle, uuid_t *object_uuid, unsigned32 binding_max_count, rpc_ns_handle_t *lookup_context, unsigned32 *status); Parameters Input
entry_name_syntax To use the syntax specified in the RPC_DEFAULT_ENTRY_SYNTAX environment variable, provide the value rpc_c_ns_syntax_default.
entry_name To use the entry name found in the RPC_DEFAULT_ENTRY environment variable, supply NULL or a null string (\0) for this parameter. When this entry name is used, the RPC runtime automatically uses the default name syntax specified in the RPC_DEFAULT_ENTRY_SYNTAX environment variable.
if_handle
object_uuid If you specify NULL or a nil UUID for this parameter, the returned binding handles contain one of the object UUIDs exported by the compatible server. If the server did not export any object UUIDs, the returned compatible binding handles contain a nil object UUID. For a non-nil UUID, compatible binding handles are returned from an entry only if the server has exported the specified object UUID. Each returned binding handle contains the specified non-nil object UUID.
binding_max_count Output
lookup_context
status
Description Before calling rpc_ns_binding_lookup_next( ), the client application must first create a lookup context by calling rpc_ns_binding_lookup_begin( ). The parameters to this routine control the operation of rpc_ns_binding_lookup_next( ). When finished locating binding handles, the client application calls the rpc_ns_binding_lookup_done( ) routine to delete the lookup context.
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_name_syntax
rpc_s_invalid_object
rpc_s_no_env_setup
rpc_s_unsupported_name_syntax
Related Information rpc_ns_binding_lookup_next(3rpc) rpc_ns_mgmt_handle_set_exp_age(3rpc)
|