home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Photo CD Demo 1
/
Demo.bin
/
inetray
/
common.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-19
|
1KB
|
43 lines
/*======================================================================
C O M M O N . H
doc: Mon Feb 24 16:37:23 1992
dlm: Fri Jun 19 13:23:49 1992
(c) 1992 ant@julia
uE-Info: 31 68 T 0 0 72 2 2 8 ofnI
======================================================================*/
#ifndef ITIMER_REAL
#include <sys/time.h>
#endif
#ifndef TRUE /* standard stuff */
#define FALSE 0
#define TRUE 1
#endif
#define IN 0 /* stdin fd */
#define FOREVER while(TRUE)
#define STRLEN 256 /* common string length */
struct hInfo { /* hostinfo */
struct hInfo *next;
struct in_addr addr; /* hostaddr */
CLIENT *clnt; /* rpc client */
char name[MAXHOSTNAMELEN]; /* hostname */
int sock; /* receive socket */
XDR xdrs; /* receive xdr stream */
int done; /* # of lines done in total */
int fDone; /* # of lines done this frame */
int wid; /* worker id */
int pid; /* worker pid */
char rUser[32]; /* remote user name */
char rwd[MAXPATHLEN]; /* remote working dir */
char broken; /* set if xmit error */
} ;
typedef struct hInfo hInfo;
static struct timeval now = {0,0}; /* immediate return */