home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / rpc / pmap_clnt.h < prev    next >
C/C++ Source or Header  |  1991-07-15  |  1KB  |  42 lines

  1. /*    @(#)pmap_clnt.h    1.1 88/03/04 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  *    @(#)pmap_clnt.h 1.11 88/02/08 SMI
  6.  */
  7.  
  8.  
  9. /*
  10.  * pmap_clnt.h
  11.  * Supplies C routines to get to portmap services.
  12.  */
  13.  
  14. /*
  15.  * Usage:
  16.  *    success = pmap_set(program, version, protocol, port);
  17.  *    success = pmap_unset(program, version);
  18.  *    port = pmap_getport(address, program, version, protocol);
  19.  *    head = pmap_getmaps(address);
  20.  *    clnt_stat = pmap_rmtcall(address, program, version, procedure,
  21.  *        xdrargs, argsp, xdrres, resp, tout, port_ptr)
  22.  *        (works for udp only.) 
  23.  *     clnt_stat = clnt_broadcast(program, version, procedure,
  24.  *        xdrargs, argsp,    xdrres, resp, eachresult)
  25.  *        (like pmap_rmtcall, except the call is broadcasted to all
  26.  *        locally connected nets.  For each valid response received,
  27.  *        the procedure eachresult is called.  Its form is:
  28.  *    done = eachresult(resp, raddr)
  29.  *        bool_t done;
  30.  *        caddr_t resp;
  31.  *        struct sockaddr_in raddr;
  32.  *        where resp points to the results of the call and raddr is the
  33.  *        address if the responder to the broadcast.
  34.  */
  35.  
  36. extern bool_t        pmap_set();
  37. extern bool_t        pmap_unset();
  38. extern struct pmaplist    *pmap_getmaps();
  39. enum clnt_stat        pmap_rmtcall();
  40. enum clnt_stat        clnt_broadcast();
  41. extern u_short        pmap_getport();
  42.