rpc_ns_group_mbr_inq_next(3) — Subroutines
NAME
rpc_ns_group_mbr_inq_next - Returns one member name at a time from a group
Used by client, server, or management applications.
SYNOPSIS
#include <dce/rpc.h>
void rpc_ns_group_mbr_inq_next(
rpc_ns_handle_t inquiry_context ,
unsigned_char_t ∗∗member_name ,
unsigned32 ∗status );
PARAMETERS
Input
inquiry_contextSpecifies a name service handle. This handle is returned from the rpc_ns_group_mbr_inq_begin routine.
Output
member_nameReturns a pointer to an RPC group member name. The name is a global name. The syntax of the returned name is specified by the member_name_syntax argument in the rpc_ns_group_mbr_inq_begin routine. Specify NULL to prevent the routine from returning this argument. In this case, the application does not call the rpc_string_free routine.
statusReturns the status code from this routine. This status code indicates whether the routine completed successfully or, if not, why not. The possible status codes and their meanings are as follows:
rpc_s_okSuccess.
rpc_s_entry_not_foundName service entry not found.
rpc_s_invalid_ns_handleInvalid name service handle.
rpc_s_name_service_unavailable
Name service unavailable.
rpc_s_no_more_membersNo more members.
rpc_s_no_ns_permissionNo permission for name service operation.
DESCRIPTION
The rpc_ns_group_mbr_inq_next routine returns one member of the RPC group specified by the group_name argument in the rpc_ns_group_mbr_inq_begin routine.
An application can view all the members of an RPC group by repeatedly calling the rpc_ns_group_mbr_inq_next routine. When all the group members have been viewed, this routine returns an rpc_s_no_more_members status. The returned group members are unordered.
On each call to this routine that returns a member name (as a global name), the RPC runtime allocates memory for the returned member_name. The application calls the rpc_string_free routine for each returned member_name string.
After viewing the RPC group’s members, the application must call the rpc_ns_group_mbr_inq_done routine to delete the inquiry context.
Permissions Required
You need read permission to the CDS object entry (the target group entry).
NOTE:
For this release, the RPC naming service (rpc_ns) routines are not implemented, nor is an independent naming service provided.
RETURN VALUES
None.
RELATED INFORMATION
Functions: rpc_ns_group_mbr_inq_begin(3), rpc_ns_group_mbr_inq_done(3), rpc_string_free(3)