Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rpc_inq_binding(3ncs) [ultrix 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

Files
See Also
       intro(3ncs), rpc_bind(3ncs), rpc_set_binding(3ncs)

															     rpc_inq_binding(3ncs)

Check Out this Related Man Page

rpc_bind(3ncs)															    rpc_bind(3ncs)

Name
       rpc_bind - allocate an RPC handle and set its binding to a server (client only)

Syntax
       #include <idl/c/rpc.h>

       handle_t rpc_$bind(object, sockaddr, slength, status)
       uuid_$t *object;
       socket_$addr_t *sockaddr;
       unsigned long slength;
       status_$t *status;

Arguments
       object		   The UUID of the object to be accessed.  If there is no specific object, specify uuid_$nil.

       sockaddr 	   The socket address of the server.

       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 creates a fully bound RPC handle that identifies a particular object and server.  This routine is equivalent to an routine fol-
       lowed by an routine.

Examples
       The  following  statement binds the binop client to the specified object and socket address.  The loc parameter is the result of a previous
       call to which converted the host name and port number to a socket address.
       rh = rpc_$bind (&uuid_$nil, &loc, llen, &status);

Diagnostics
       This section lists status codes for errors returned by this routine in

       rpc_$cant_bind_sock The RPC runtime library created a socket but was unable to bind it to a socket address.

       rpc_$not_in_call    An internal error.

       rpc_$proto_error    An internal protocol error.

Files
See Also
       intro(3ncs), rpc_clear_binding(3ncs), rpc_clear_server_binding(3ncs), rpc_set_binding(3ncs)

																    rpc_bind(3ncs)
Man Page

4 More Discussions You Might Find Interesting

1. IP Networking

Bad Address

I am trying to write a C server code that will handle WWW request from client. i am very new to socket programming. i can very well setup the socket...but when an incomin request comes from a browser, the progrom exits with an error message "Bad address". the following is the code. please do help... (1 Reply)
Discussion started by: shankarramv
1 Replies

2. Shell Programming and Scripting

socket programing in client server

(0 Replies)
Discussion started by: saiful_911
0 Replies

3. Linux

To share socket fd between two process

Hello every one i am implementing client server program.To handle multiple fds of client in server i used poll function.But this poll not able to access socket fd from other process.How can i share socket fd between two process. Please Help me,Thanks in advance. (1 Reply)
Discussion started by: andrew.paul
1 Replies

4. Programming

Share socket fd between two processes

Hello every one i am implementing client server program.To handle multiple fds of client in server i used poll function.But this poll not able to access socket fd from other process.How can i share socket fd between two process. Please Help me,Thanks in advance. (3 Replies)
Discussion started by: andrew.paul
3 Replies