rrpc_inq_interfaces(3ncs)rrpc_inq_interfaces(3ncs)Name
rrpc_inq_interfaces - obtain a list of the interfaces that a server exports
Syntax
#include <idl/c/rrpc.h>
void rrpc_$inq_interfaces(handle, max_ifs, ifs, l_if, status)
handle_t handle;
unsigned long max_ifs;
rrpc_$interface_vec_t ifs[];
unsigned long *l_if;
status_$t *status;
Arguments
handle An RPC handle.
max_ifs The maximum number of elements in the array of interface specifiers.
ifs An array of rpc_$if_spec_t.
l_if The index of the last element in the returned array.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it was
successful.
Description
The routine returns an array of RPC interface specifiers.
Restrictions
On the client side, because of the way the calls are defined and implemented in the run-time library you must explicitly call into the
entry point vector table for the interface to send an request across the network. The following is an example of a call that works
(*rrpc_$client_epv.rrpc_$inq_interfaces)(handle,
(unsigned long) max_ifs, ifs, &l_if, &status);
The server side stub routines call the entry point on behalf of the client. The results of the call are then passed back to the client.
FilesSee Alsointro(3ncs)rrpc_inq_interfaces(3ncs)
Check Out this Related Man Page
rpc_inq_binding(3ncs)rpc_inq_binding(3ncs)Name
rpc_inq_binding - return the socket address represented by an RPC handle (client or server)
Syntax
#include <idl/c/rpc.h>
void rpc_$inq_binding(handle, sockaddr, slength, status)
handle_t handle;
socket_$addr_t *sockaddr;
unsigned long *slength;
status_$t *status;
Arguments
handle An RPC handle.
sockaddr The socket address represented by handle.
slength The length, in bytes, of sockaddr.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it
was successful.
Description
The routine enables a client to determine the socket address, and therefore the server, identified by an RPC handle. It is useful when a
client uses an unbound handle in a remote procedure call and wishes to determine the particular server that responded to the call.
Examples
The Location Broker administrative tool, uses the following statement to determine the GLB that last responded to a lookup request:
rpc_$inq_binding(lb_$handle, &global_broker_addr,
&global_broker_addr_len, &status);
Diagnostics
This section lists status codes for errors returned by this routine in
rpc_$not_in_call An internal error.
rpc_$proto_error An internal protocol error.
rpc_$unbound_handle The handle is not bound and does not represent a particular host address. Returned by
FilesSee Alsointro(3ncs), rpc_bind(3ncs), rpc_set_binding(3ncs)rpc_inq_binding(3ncs)
Hi can someone tell me whats wrong with the following:
#!/bin/sh
file1=$1
file2=$2
if
then
if
then
echo "File 1 is" $file1
echo "File 2 is" $file2
cp $file1 $file2
echo "Copy complete!"
else
echo "ERROR: File does not exist!"
... (8 Replies)
Hi,
I'm having a problem performing for loop on remote server, i know this can be done with one liner but i'm not sure how it works if using logical operator such as for ifs and case or while
for server in sterverA serverB serverC ; do
ssh -v $server "cd ~/MyDocuments/; bag=`find... (6 Replies)
hi I keep getting an error with this nested if statement and am getting the error unexpected end of file, can anyone help me as to why this wont execute?
#!/bin/bash
#script to check wether the -i -v statements run correctly
removeFile ()
{
mv $1 $HOME/deleted
}... (3 Replies)
I have one file like this:
NEW
/ifs/SQL_Backups3/SQL_SharePoint1
NEW
/ifs/SQL_Backups/SQL_SharePointThis can be easily sorted by the following command:
cat file| sort -k3,3nBut I have another file like this:
/Pool0/local/Benchmark
/Pool0/local/CRAD
/Pool0/local/crdhw/espresso_scratch1... (5 Replies)
Hi.
I'm having problems with my HP C8000 and 11.11 (ifs client needs to be restarted every week), trying to get it worked out.
When I searched the web it seems, I require the following patches:
PHKL_41041, PHKL_43823, PHKL_43577
Is there anyway to get hold of these packages?
Many thanks... (2 Replies)