home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / lan / soss.arj / RPC / P_CLNT.H < prev    next >
C/C++ Source or Header  |  1991-02-22  |  1KB  |  39 lines

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