home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / rpc / h / pmap_clnt < prev    next >
Encoding:
Text File  |  1995-01-11  |  2.8 KB  |  81 lines

  1. /* -*-C-*-
  2.  *
  3.  * $Header: /ax/networking:include/rpc/pmap_clnt.h:networking  1.1  $
  4.  * $Source: /ax/networking:include/rpc/pmap_clnt.h: $
  5.  *
  6.  * Copyright (c) 1995 Acorn Computers Ltd., Cambridge, England
  7.  *
  8.  * $Log:    pmap_clnt.h,v $
  9.  * Revision 1.1  95/01/11  10:18:29  kwelton
  10.  * Initial revision
  11.  * 
  12.  */
  13.  
  14. /* @(#)pmap_clnt.h    2.1 88/07/29 4.0 RPCSRC; from 1.11 88/02/08 SMI */
  15. /*
  16.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  17.  * unrestricted use provided that this legend is included on all tape
  18.  * media and as a part of the software program in whole or part.  Users
  19.  * may copy or modify Sun RPC without charge, but are not authorized
  20.  * to license or distribute it to anyone else except as part of a product or
  21.  * program developed by the user.
  22.  * 
  23.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  24.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  25.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  26.  * 
  27.  * Sun RPC is provided with no support and without any obligation on the
  28.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  29.  * modification or enhancement.
  30.  * 
  31.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  32.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  33.  * OR ANY PART THEREOF.
  34.  * 
  35.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  36.  * or profits or other special, indirect and consequential damages, even if
  37.  * Sun has been advised of the possibility of such damages.
  38.  * 
  39.  * Sun Microsystems, Inc.
  40.  * 2550 Garcia Avenue
  41.  * Mountain View, California  94043
  42.  */
  43.  
  44. /*
  45.  * pmap_clnt.h
  46.  * Supplies C routines to get to portmap services.
  47.  *
  48.  * Copyright (C) 1984, Sun Microsystems, Inc.
  49.  */
  50.  
  51. /*
  52.  * Usage:
  53.  *    success = pmap_set(program, version, protocol, port);
  54.  *    success = pmap_unset(program, version);
  55.  *    port = pmap_getport(address, program, version, protocol);
  56.  *    head = pmap_getmaps(address);
  57.  *    clnt_stat = pmap_rmtcall(address, program, version, procedure,
  58.  *        xdrargs, argsp, xdrres, resp, tout, port_ptr)
  59.  *        (works for udp only.) 
  60.  *     clnt_stat = clnt_broadcast(program, version, procedure,
  61.  *        xdrargs, argsp,    xdrres, resp, eachresult)
  62.  *        (like pmap_rmtcall, except the call is broadcasted to all
  63.  *        locally connected nets.  For each valid response received,
  64.  *        the procedure eachresult is called.  Its form is:
  65.  *    done = eachresult(resp, raddr)
  66.  *        bool_t done;
  67.  *        caddr_t resp;
  68.  *        struct sockaddr_in raddr;
  69.  *        where resp points to the results of the call and raddr is the
  70.  *        address if the responder to the broadcast.
  71.  */
  72.  
  73. extern bool_t        pmap_set();
  74. extern bool_t        pmap_unset();
  75. extern struct pmaplist    *pmap_getmaps();
  76. enum clnt_stat        pmap_rmtcall();
  77. enum clnt_stat        clnt_broadcast();
  78. extern u_short        pmap_getport();
  79.  
  80. /* EOF pmap_clnt.h */
  81.