Allocates an Remote Procedure Call (RPC) handle and sets its binding to a server.
handle_t rpc_$bind (object_id, sockaddr, slength, status)
uuid_$t *object_id; socket_$addr_t *sockaddr; unsigned long slength; us_$t *status;
The rpc_$bind function creates a fully bound RPC handle that identifies a particular object and server. This routine is equivalent to an rpc_$alloc_handle routine followed by an rpc_$set_binding routine.
Note: This routine is used by clients only.
Output | |
---|---|
status | Points to the completion status. |
Upon successful completion, this routine returns an RPC handle (handle_t) that identifies the remote object. This handle is used as the first input parameter to remote procedure calls with explicit handles.
The following example binds a banking client program to the specified object and socket address:
h =rpc_$bind(&bank_id, &bank_loc[0].saddr, bank_loc[0].saddr_len, &st);
The bank_loc structure is the results parameter of a previous Location Broker lookup call.
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.