home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / rpc / rpcb_clnt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.6 KB  |  84 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/include/rpc/rpcb_clnt.h.sl 1.1 4.0 12/08/90 16379 AT&T-USL"
  11.  
  12. /* @(#)rpcb_clnt.h 1.3 88/12/05 SMI */
  13.  
  14. /*
  15.  *          PROPRIETARY NOTICE (Combined)
  16.  *  
  17.  *  This source code is unpublished proprietary information
  18.  *  constituting, or derived under license from AT&T's Unix(r) System V.
  19.  *  In addition, portions of such source code were derived from Berkeley
  20.  *  4.3 BSD under license from the Regents of the University of
  21.  *  California.
  22.  *  
  23.  *  
  24.  *  
  25.  *          Copyright Notice 
  26.  *  
  27.  *  Notice of copyright on this source code product does not indicate 
  28.  *  publication.
  29.  *  
  30.  *      (c) 1986,1987,1988,1989  Sun Microsystems, Inc.
  31.  *      (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  32.  *                All rights reserved.
  33.  */
  34.  
  35. /*
  36.  * rpcb_clnt.h
  37.  * Supplies C routines to get to rpcbid services.
  38.  *
  39.  */
  40.  
  41. /*
  42.  * Usage:
  43.  *    success = rpcb_set(program, version, nconf, address);
  44.  *    success = rpcb_unset(program, version, nconf);
  45.  *    success = rpcb_getaddr(program, version, nconf, host);
  46.  *    head = rpcb_getmaps(nconf, host);
  47.  *    clnt_stat = rpcb_rmtcall(nconf, host, program, version, procedure,
  48.  *        xdrargs, argsp, xdrres, resp, tout, addr_ptr)
  49.  *     clnt_stat = rpc_broadcast(program, version, procedure,
  50.  *        xdrargs, argsp,    xdrres, resp, eachresult, nettype)
  51.  *        (like rpcb_rmtcall, except the call is broadcasted to all
  52.  *        locally connected nets.  For each valid response received,
  53.  *        the procedure eachresult is called.  Its form is:
  54.  *        done = eachresult(resp, raddr, netconf)
  55.  *            bool_t done;
  56.  *            caddr_t resp;
  57.  *            struct netbuf *raddr;
  58.  *            struct netconfig *netconf;
  59.  *        where resp points to the results of the call and raddr is the
  60.  *        address if the responder to the broadcast. netconf is the
  61.  *        on which the response came.
  62.  *    success = rpcb_gettime(host, timep)
  63.  *    uaddr = rpcb_taddr2uaddr(nconf, taddr);
  64.  *    taddr = rpcb_uaddr2uaddr(nconf, uaddr);
  65.  */
  66.  
  67. #ifndef _RPC_RPCB_CLNT_H
  68. #define _RPC_RPCB_CLNT_H
  69.  
  70. #include <rpc/types.h>
  71. #include <rpc/rpcb_prot.h>
  72.  
  73. extern bool_t        rpcb_set();
  74. extern bool_t        rpcb_unset();
  75. extern RPCBLIST        *rpcb_getmaps();
  76. extern enum clnt_stat    rpcb_rmtcall();
  77. extern enum clnt_stat    rpc_broadcast();
  78. extern bool_t        rpcb_getaddr();
  79. extern bool_t        rpcb_gettime();
  80. extern char        *rpcb_taddr2uaddr();
  81. extern struct netbuf    *rpcb_uaddr2taddr();
  82.  
  83. #endif /*!_RPC_RPCB_CLNT_H*/
  84.