home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / tcp / amitcp-sdk / src / rpclib / pmap_prot.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-29  |  853 b   |  38 lines

  1. /*
  2.  *      $Id: pmap_prot.c,v 4.2 1994/09/29 23:48:50 jraja Exp $
  3.  *
  4.  *      Protocol for the local binder service, or pmap.
  5.  *
  6.  *      Copyright © 1994 AmiTCP/IP Group,
  7.  *                       Network Solutions Development Inc.
  8.  *                       All rights reserved. 
  9.  */
  10.  
  11. /* @(#)pmap_prot.c    2.1 88/07/29 4.0 RPCSRC */
  12. #if !defined(lint) && defined(SCCSIDS)
  13. static char sccsid[] = "@(#)pmap_prot.c 1.17 87/08/11 Copyr 1984 Sun Micro";
  14. #endif
  15.  
  16. /*
  17.  * Copyright (C) 1984, Sun Microsystems, Inc.
  18.  */
  19.  
  20. #include <sys/param.h>
  21. #include <rpc/types.h>
  22. #include <rpc/xdr.h>
  23. #include <rpc/pmap_prot.h>
  24.  
  25.  
  26. bool_t XDRFUN
  27. xdr_pmap(xdrs, regs)
  28.     XDR *xdrs;
  29.     struct pmap *regs;
  30. {
  31.  
  32.     if (xdr_u_long(xdrs, ®s->pm_prog) && 
  33.         xdr_u_long(xdrs, ®s->pm_vers) && 
  34.         xdr_u_long(xdrs, ®s->pm_prot))
  35.         return (xdr_u_long(xdrs, ®s->pm_port));
  36.     return (FALSE);
  37. }
  38.