Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

rpc_host.hh

Go to the documentation of this file.
00001 
00002 
00003 #ifndef RPC_HOST_HH
00004 #define RPC_HOST_HH
00005 
00006 #include "rcs_defs.hh"          /* __MSDOS__, RCS_EXPORT, EXTERN_C_STD_HEADERS  */
00007 
00008 #ifdef EXTERN_C_STD_HEADERS
00009 extern "C"
00010 {
00011 #endif
00012 
00013 #include <rpc/rpc.h>            /* Definitions needed by other rpc */
00014 
00015 #ifndef __MSDOS__
00016 // FIXME: The header file on chip doesn't prevent double inclusion.
00017 //   so I had to do it here.
00018 #if !defined(PMAPPORT) || !defined(LYNX)
00019 #include <rpc/pmap_prot.h>      /* struct pmaplist */
00020 #endif
00021   /* headers */
00022 #else
00023 
00024 // Don't make users depend on PC-NFS Toolkit Headers.
00025 //#include <rpc/p_prot.h>               /* struct pmaplist */
00026   struct pmaplist;              /* partial definition */
00027 
00028 
00029 #endif                          /* MSDOS */
00030 
00031 #ifdef VXWORKS
00032 // FIXME: The VxWorks header file socket.h should include <sys/types.h>
00033 // or not use u_short.
00034 #include <sys/types.h>          /* u_short (needed by socket.h) */
00035 #endif
00036 
00037 #ifdef LYNX
00038 // For LYNX: The header file on chip doesn't prevent double inclusion.
00039   struct hostent;               /* partial definition */
00040   struct sockaddr_in;           /* partial definition */
00041 
00042 #else
00043 #ifndef VXWORKS
00044 #include <netdb.h>              /* struct hostent */
00045 #endif
00046 #include <sys/socket.h>         /* struct sockaddr_in */
00047 #endif
00048 
00049 #ifdef EXTERN_C_STD_HEADERS
00050 }
00051 #endif
00052 
00053 class RCS_EXPORT RPC_HOST
00054 {
00055 public:
00056   RPC_HOST (char *host_name);
00057     virtual ~ RPC_HOST ();
00058   char RCS_FAR *name;
00059   sockaddr_in RCS_FAR *socket_address;
00060 #ifndef VXWORKS
00061   hostent RCS_FAR *host_entry;
00062 #endif
00063   pmaplist RCS_FAR *pmap_entry;
00064   int check_if_prog_registered (unsigned long);
00065 };
00066 
00067 #endif

Generated on Sun Dec 2 15:56:52 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001