home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / nfsd / src / rpc_register.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-24  |  771 b   |  38 lines

  1. /*  Headers for RPC registration routines
  2.  
  3.     ©1999 Joseph Walton
  4.  
  5.     This software is distributed under the terms of the GNU General Public
  6.     License; either version 2 of the License, or (at your option) any
  7.     later version.
  8. */
  9.  
  10. #ifndef NFSD_RPC_REGISTER_H
  11. #define NFSD_RPC_REGISTER_H
  12.  
  13. #include <exec/types.h>
  14.  
  15. #define RPC_REGISTER_TIMEOUT_AFTER 30
  16. #define RPC_REGISTER_SEND_EVERY 5
  17.  
  18. #define LOCAL_ADDR htonl(0x7f000001)
  19.  
  20. // portmapper constants
  21. #define PMAP_PORT 111
  22. #define PMAP_PROGRAM 100000
  23. #define PMAP_VERSION 2
  24.  
  25. #define PMAPPROC_SET 1
  26. #define PMAPPROC_UNSET 2
  27.  
  28. #define IPPROTO_TCP 6
  29. #define IPPROTO_UDP 17
  30.  
  31. void printError(STRPTR s);
  32. BOOL pmap_set(int socket, int prog, int version, int port);
  33. BOOL pmap_unset(int socket, int prog, int version);
  34.  
  35. #endif
  36.  
  37.  
  38.