rpc_listen(3ncs)rpc_listen(3ncs)Name
rpc_listen - listen for and handle remote procedure call (RPC) packets (server only)
Syntax
#include <idl/c/rpc.h>
void rpc_$listen(max_calls, status)
unsigned long max_calls;
status_$t *status;
Arguments
max_calls This value indicates the maximum number of calls that the server is allowed to process concurrently. On ULTRIX systems,
this value should be 1; any other value is ignored and defaulted to one.
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 dispatches incoming remote procedure call requests to manager procedures and returns the responses to the client. You must
issue or before you use This routine normally does not return. A return from this routine indicates either an irrecoverable error, or that
an call has been issued. If is equal to status_$ok , the assumption is that has occurred.
Examples
Listen for incoming remote procedure call requests.
rpc_$listen (1, &status);
Diagnostics
This section lists status codes for errors returned by this routine in
rpc_$not_in_call An internal error.
rpc_$you_crashed This error can occur if a server has crashed and restarted. A client RPC runtime library sends the error to the server
if the client makes a remote procedure call before the server crashes, then receives a response after the server
restarts.
rpc_$proto_error An internal protocol error.
rpc_$bad_pkt The server or client has received an ill-formed packet.
FilesSee Alsointro(3ncs), rpc_shutdown(3ncs)rpc_listen(3ncs)
Check Out this Related Man Page
rpc_clear_binding(3ncs)rpc_clear_binding(3ncs)Name
rpc_clear_binding - unset the binding of an RPC handle to a host and server (client only)
Syntax
#include <idl/c/rpc.h>
void rpc_$clear_binding(handle, status)
handle_t handle;
status_$t *status;
Arguments
handle The RPC handle whose binding is being cleared.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it was success-
ful.
Description
The routine removes any association between an RPC handle and a particular server and host, but it does not remove the association between
the handle and an object. This routine saves the RPC handle so that it can be reused to access the same object, either by broadcasting or
after resetting the binding to another server.
A remote procedure call made using an unbound handle is broadcast to all Local Location Brokers (LLBs) on the local network. If the call's
interface and the object identified by the handle are both registered with any LLB, that LLB forwards the request to the registering
server. The client RPC runtime library returns the first response that it receives and binds the handle to the first server that
responded.
The routine is the inverse of the routine.
Examples
Clear the binding represented in handle:
rpc_$clear_binding (handle, &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.
FilesSee Alsointro(3ncs), rpc_bind(3ncs), rpc_clear_server_binding(3ncs), rpc_set_binding(3ncs)rpc_clear_binding(3ncs)
Hi Guys..
Got a NIM issue.. Am trying to pull a image of a client from NIM server.
am getting the following error... in standard error output..
0042-001 nim: processing error encountered on "master":
Usage: rm File...
Am using the same script to pull image and it works fine..... (1 Reply)
HI all,
I want to make a webpage showing the status of services running on a server. for example email, http , etc. That way users can see that server status for themselfs. Maybe even show the status of each virtual domain running on the server. Any way to do this without buying some product?
... (4 Replies)
There is a server and a client,when client send a message to server,server can send a reply to client. The status of server and client is ESTABLISHED.Then I halt the client,I find the server status is CLOSE_WAIT and the client status is FIN_WAIT_2. Many minutes passed,I find the the server status... (1 Reply)
i am beginig with unix
c code for sun remote procedure call to do the following:
1- The clients reads in a variable length array from the command line
2- The client offers a menu for the user to choose what to do with the array:
a. Sort the array
b. Add the array
c. Find max
d. Find... (1 Reply)
i am beginig with unix
c code for sun remote procedure call to do the following:
1- The clients reads in a variable length array from the command line
2- The client offers a menu for the user to choose what to do with the array:
a. Sort the array
b. Add the array
c. Find max
d. Find... (1 Reply)
i am beginig with unix
c code for sun remote procedure call to do the following:
1- The clients reads in a variable length array from the command line
2- The client offers a menu for the user to choose what to do with the array:
a. Sort the array
b. Add the array
c. Find max
d. Find... (1 Reply)
am beginig with unix
c code for sun remote procedure call
You are to write a program using RPC facility to do the following:
1- The clients reads in a variable length array from the command line
2- The client offers a menu for the user to choose what to do with the array:
a. Sort the array... (1 Reply)
Hello ,
I am getting a strange result when trying to login to a server with my credentials, terminal getting hang i.e NOTHING . If i see the process status with other account getting some process rpc_wa is running , Could you please comment /suggest on this.
Thanks (0 Replies)
Hello,
I have a client C and server C, the client connects to the server and sends a message. At runtime I want to attach to the message sent, a couple (x, y)
Do you know a mechanism that allows me this?
Thank you.
Cordially. (5 Replies)
Hi All,
Using Wget I'm able to get the status of the server.....only when the server is completely down or up....
but problem here in script is Suppose if the server got hang I mean to say that if the server is taking long time to login, for example normally the server takes 3 seconds to login... (3 Replies)