DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Programming with Remote Procedure Calls (RPC)

Name-to-address translation

Each transport has an associated set of routines that convert between universal network addresses (string representations of transport addresses) and their local address representation. These universal addresses are passed around within the RPC system (for example, between rpcbind and a client). When any programming interface to the transport layer is made, a transport-specific name-to-address translation routine is called to convert the universal address into local form. Each transport has associated with it a run-time loadable library that contains the name-to-address translation routines. The main translation routines are:


netdir_getbyname:
Translates from host/service pairs and a netconfig structure (for example, server1, rpcbind) to a set of netbuf addresses. netbuf's are X/Open Transport Interface (XTI) structures that are used at run-time to contain transport-specific addresses.

netdir_getbyaddr:
Translates from netbuf addresses and a netconfig structure into host/service pairs.

uaddr2taddr:
Translates from universal addresses and a netconfig structure to netbuf addresses.

taddr2uaddr:
Translates from netbuf addresses and a netconfig structure to universal addresses.
For more details on these routines, see the netdir(NC) manual page.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005