dced_binding_create(3dce)Establishes a dced binding to one of the host services of a remote (or the local) dced. Synopsis #include <dce/dced.h> void dced_binding_create( dced_string_t service, unsigned32 binding_flags, dced_binding_handle_t *dced_bh, error_status_t *status); Parameters Input
service
service_name
service_name@hosts/host_name
/.:/hosts/host_name/config/service_name
/.../cell/hosts/host_name/config/service_name
binding_flags Output
dced_bh
status
Description · Endpoint Mapper · Host Data Management (hostdata) · Server Management: Including Server Configuration (srvrconf) and Server Execution (srvrexec) · Security Validation (secval) · Key Table Management (keytab) The dced_binding_create( ) routine establishes a dced binding to a dced service and it (or dced_binding_from_rpc_binding( )) must be the first dced API routine called before an application can access one of the host services with other dced API routines. When an application is finished with the service, it should call the dced_binding_free( ) routine to free resources. To establish a dced binding to your local host's dced, you can use the service name by itself, and do not need to specify a host. To access the endpoint map directly, use rpc_mgmt_ep_elt_inq_begin( ) and associated routines.
Examples
dced_binding_handle_t dced_bh; 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. error_status_ok dce_cf_e_no_mem dced_s_invalid_arg dced_s_no_memory dced_s_unknown_service rpc_s_entry_not_found rpc_s_incomplete_name rpc_s_invalid_object rpc_s_name_service_unavailable rpc_s_no_memory rpc_s_no_more_bindings rpc_s_no_ns_permission
Related Information dced_binding_from_rpc_binding(3dce) Book: OSF DCE Application Development Guide - Core Components
|