00001
00002
00003 #ifndef RPC_HOST_HH
00004 #define RPC_HOST_HH
00005
00006 #include "rcs_defs.hh"
00007
00008 #ifdef EXTERN_C_STD_HEADERS
00009 extern "C"
00010 {
00011 #endif
00012
00013 #include <rpc/rpc.h>
00014
00015 #ifndef __MSDOS__
00016
00017
00018 #if !defined(PMAPPORT) || !defined(LYNX)
00019 #include <rpc/pmap_prot.h>
00020 #endif
00021
00022 #else
00023
00024
00025
00026 struct pmaplist;
00027
00028
00029 #endif
00030
00031 #ifdef VXWORKS
00032
00033
00034 #include <sys/types.h>
00035 #endif
00036
00037 #ifdef LYNX
00038
00039 struct hostent;
00040 struct sockaddr_in;
00041
00042 #else
00043 #ifndef VXWORKS
00044 #include <netdb.h>
00045 #endif
00046 #include <sys/socket.h>
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