home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / rpc / pmap_clnt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.3 KB  |  73 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. #ifndef _RPC_PMAPCLNT_H
  11. #define _RPC_PMAPCLNT_H
  12.  
  13. #ident    "@(#)/usr/include/rpc/pmap_clnt.h.sl 1.1 4.0 12/08/90 34080 AT&T-USL"
  14.  
  15. /*    @(#)pmap_clnt.h 1.14 88/10/25 SMI    */
  16.  
  17. /*
  18.  *          PROPRIETARY NOTICE (Combined)
  19.  *  
  20.  *  This source code is unpublished proprietary information
  21.  *  constituting, or derived under license from AT&T's Unix(r) System V.
  22.  *  In addition, portions of such source code were derived from Berkeley
  23.  *  4.3 BSD under license from the Regents of the University of
  24.  *  California.
  25.  *  
  26.  *  
  27.  *  
  28.  *          Copyright Notice 
  29.  *  
  30.  *  Notice of copyright on this source code product does not indicate 
  31.  *  publication.
  32.  *  
  33.  *      (c) 1986,1987,1988,1989  Sun Microsystems, Inc.
  34.  *      (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  35.  *                All rights reserved.
  36.  */
  37.  
  38. /*
  39.  * pmap_clnt.h
  40.  * Supplies C routines to get to portmap services.
  41.  */
  42.  
  43. /*
  44.  * Usage:
  45.  *    success = pmap_set(program, version, protocol, port);
  46.  *    success = pmap_unset(program, version);
  47.  *    port = pmap_getport(address, program, version, protocol);
  48.  *    head = pmap_getmaps(address);
  49.  *    clnt_stat = pmap_rmtcall(address, program, version, procedure,
  50.  *        xdrargs, argsp, xdrres, resp, tout, port_ptr)
  51.  *        (works for udp only.) 
  52.  *     clnt_stat = clnt_broadcast(program, version, procedure,
  53.  *        xdrargs, argsp,    xdrres, resp, eachresult)
  54.  *        (like pmap_rmtcall, except the call is broadcasted to all
  55.  *        locally connected nets.  For each valid response received,
  56.  *        the procedure eachresult is called.  Its form is:
  57.  *    done = eachresult(resp, raddr)
  58.  *        bool_t done;
  59.  *        caddr_t resp;
  60.  *        struct sockaddr_in raddr;
  61.  *        where resp points to the results of the call and raddr is the
  62.  *        address if the responder to the broadcast.
  63.  */
  64.  
  65. extern bool_t        pmap_set();
  66. extern bool_t        pmap_unset();
  67. extern struct pmaplist    *pmap_getmaps();
  68. enum clnt_stat        pmap_rmtcall();
  69. enum clnt_stat        clnt_broadcast();
  70. extern u_short        pmap_getport();
  71.  
  72. #endif    /* _RPC_PMAPCLNT_H */
  73.