Looks up information about a type in the Global Location Broker (GLB) database.
void lb_$lookup_type (object_type, lookup_handle, max_results) void lb_$lookup_type (num_results, results, status) uuid_$t *object_type; lb_$lookup_handle_t *lookup_handle; unsigned long max_results; unsigned long *num_results; lb_$entry_t results [ ]; status_$t *status;
The lb_$lookup_type routine returns GLB database entries whose fields in the object_type parameter match the specified type. It returns information about all replicas of all objects of that type and about all interfaces to each object.
The lb_$lookup_type routine cannot return more than the number of matching entries specified by the max_results parameter at one time. The lookup_handle parameter directs this routine to do sequential lookup calls to find all matching entries.
Notes:
- The Location Broker does not prevent modification of the database between lookup calls, which can cause the locations of entries relative to a value of the lookup_handle parameter to change. If multiple calls are made to find all matching results in the database, the returned information may skip or duplicate entries from the database.
- It is also possible for the results of a single lookup call to skip or duplicate entries. This can occur if the size of the results exceeds the size of a remote procedure call (RPC) packet (64KB).
To look up information in the GLB database about the array_proc type, enter:
lb_$lookup_type (&array_proc_id, &lookup_handle, 10, &num_results, &results, &st)
The results parameter is a 10-element array of the lb_$entry_t type.
This Library Routine is part of Network Computing System in Network Support Facilities in Base Operating System (BOS) Runtime.
Remote Procedure Call (RPC) Runtime Library (NCS) in AIX Version 4.3 Communications Programming Concepts.