home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / inetray / common.h < prev    next >
C/C++ Source or Header  |  1992-06-19  |  1KB  |  43 lines

  1. /*======================================================================
  2.                     C O M M O N . H 
  3.                     doc: Mon Feb 24 16:37:23 1992
  4.                     dlm: Fri Jun 19 13:23:49 1992
  5.                     (c) 1992 ant@julia
  6.                     uE-Info: 31 68 T 0 0 72 2 2 8 ofnI
  7. ======================================================================*/
  8.  
  9. #ifndef ITIMER_REAL
  10. #include    <sys/time.h>
  11. #endif
  12.  
  13. #ifndef TRUE                /* standard stuff */
  14. #define    FALSE    0
  15. #define    TRUE    1
  16. #endif
  17.  
  18. #define    IN    0            /* stdin fd */
  19.  
  20. #define    FOREVER    while(TRUE)
  21.  
  22. #define    STRLEN        256        /* common string length */
  23.  
  24. struct hInfo {                /* hostinfo */
  25.     struct hInfo     *next;
  26.     struct in_addr    addr;        /* hostaddr */
  27.     CLIENT    *clnt;            /* rpc client */
  28.     char     name[MAXHOSTNAMELEN];    /* hostname */
  29.     int    sock;            /* receive socket */
  30.     XDR    xdrs;            /* receive xdr stream */
  31.     int      done;            /* # of lines done in total */
  32.     int    fDone;            /* # of lines done this frame */
  33.     int    wid;            /* worker id */
  34.     int     pid;            /* worker pid */
  35.     char    rUser[32];        /* remote user name */
  36.     char    rwd[MAXPATHLEN];    /* remote working dir */
  37.     char    broken;            /* set if xmit error */
  38. } ;
  39.  
  40. typedef struct hInfo hInfo;
  41.  
  42. static struct timeval now = {0,0};    /* immediate return */
  43.